home *** CD-ROM | disk | FTP | other *** search
/ IBM OEM Software Product … CD For PC Manufacturers / IBM OEM Software - Product Sampler CD for PC Manufacturers.iso / InternetIntranets / Notes / LOTUS027.DSK / DOCLBM46.NTF (.txt) < prev    next >
Lotus Notes Database  |  1997-08-14  |  465KB  |  4,332 lines

  1. Microsoft Office Library (R4.6)
  2. #1StdR46DocLibMS
  3. FOLDER_DIRECTORY_OBJECT
  4. My Favorite Documents
  5. CN=Lotus Notes Template Development/O=Lotus Notes
  6. *Nb:O
  7. xazm`
  8. CN=Catherine Duffy/OU=NAHQ/O=LotusCN=Catherine Duffy/O=IrisLotus NotesCN=Catherine Duffy/O=IrisLotus NotesCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  9. #############################
  10. $Modified
  11.     1S2S3S
  12. $TITLE$FormPrivs$FormUsers$Body$Flags$Class$Modified$Comment$AssistTrigger$AssistType$AssistFlags$UpdatedBy$$FormScript_O
  13. $Flags
  14.     0SL1S4S5S3724
  15. $TITLE
  16. CN=Ryan Jansen/O=Iris######################################
  17. CN=Catherine Duffy/O=Irisc:\notes4\data\doclib4.ntfMicrosoft Office Library (R4.6)
  18. #1StdR46DocLibMS
  19. CN=Ryan Jansen/O=Iris
  20. ################################################
  21. DocumentDocumentDocumentWorkflow8D7B7DDC13AE332001E24E4C4F20472F
  22. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes30A25A704860077D10EB4D587ABE53C467843E4301C6054E658E2C2D65E5AC9DCN=Lotus Notes Template Development/O=Lotus Notes
  23. ##########################################################
  24. ResponseResponse
  25. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes############
  26. *Nb:O
  27. Response to ResponseResponse to Response
  28. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes############################################
  29. Main Navigator
  30. Debbie BrancoCN=Lotus Notes Template Development/O=Lotus NotesG3####################################################
  31. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  32. ##########################################################
  33. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  34. ##########################################################
  35. ##########################################################
  36. O=Lotus Notes
  37. O=Lotus Notes
  38. PURSAFO
  39. |.:#U
  40. O=Lotus Notes
  41. CN=Lotus Notes Template Development/O=Lotus Notes
  42. PURSAFO
  43. Fde!f^^
  44. ZdpgL
  45. $ACLDigest
  46. New Document
  47. Subject
  48.     4S6S
  49. "MS Sans Serif
  50. Times New Roman
  51. '++LotusScript Development Environment:2:5:(Options):0:66
  52. Option Public
  53. '++LotusScript Development Environment:2:5:(Forward):0:1
  54. '++LotusScript Development Environment:2:5:(Declarations):0:10
  55. Dim FormW As NotesUIWorkspace
  56. Dim FormDoc As NotesUIDocument
  57.  Document'++LotusScript Development Environment:2:5:(Options):0:66
  58. '++LotusScript Development Environment:2:5:(Forward):0:1
  59. Declare Sub Exiting(Source As Field)
  60. '++LotusScript Development Environment:2:5:(Declarations):0:2
  61. '++LotusScript Development Environment:2:2:BindEvents:1:129
  62. Private Sub BindEvents(Byval Objectname_ As String)
  63.      Static Source As FIELD
  64.      Set Source = Bind(Objectname_)
  65.      On Event Exiting From Source Call Exiting
  66. End Sub
  67. '++LotusScript Development Environment:2:2:Exiting:1:12
  68. Sub Exiting(Source As Field)
  69.      formdoc.refresh
  70. End Sub
  71. DocumentWorkflow
  72.     DocumentWorkflow Subform
  73.     :  This Subform includes the LotusScript, Actions, and hidden fields which are used in all versions of the Document form.
  74.     Hidden Fields:-------------------------------------------------------------------
  75. DocumentAuthors
  76.     4S6S
  77. DocumentAuthors
  78. Scope
  79. Private
  80. Reviewers
  81.     3S4S6S7S8S10SDocumentReaders
  82. LastEditor
  83. Document
  84. Paintbrush Document
  85. DocumentAuthors
  86.     3S4S7S8S9S10StmpUseOLE
  87. $OLEObjField
  88. OLEBody
  89. $OLEObjRichTextField
  90. Scope
  91. Private
  92.     1S2S
  93. Scope
  94. Public
  95. Scope
  96.     1S2S3S4S
  97. %12-/H
  98. !G,$W,#I4)X6(H,4W,4G98X<6h*#x+$g9)w8(h.6u-2g<5w<4>B=YA
  99. WC9iB.xC-iF8wH8jT>zR<rd?
  100. 2L3;FK=D
  101. j=C:FQ8Qp<b
  102. GEHXHGLQLZSKEKUVKSGRYYWWgJEvIEiTHyWFfLRwKSgYWwZV[cXtfYPZjl\dWfphhhvigkqlysjhktvlsjtxyww
  103. Subject
  104.     0S0E
  105. SubjectRequired: description of this document 
  106.     Created By:    
  107. FromDocument author name
  108.      on 
  109. DateThe date/time when the document was composed
  110.      at 
  111. TimeCreated
  112.     Category
  113. Miscellaneous
  114. CategoriesPress ENTER for list of keywords or to add a new keyword
  115. In the case of reading an existing document, it is not necessary to do the @DbColumn because we don't support the use of Keyword Synonyms in this application, and thus translation doesn't need to be done.
  116. NoCache
  117. ($All)
  118.     0R4S5S7S9S15S17S19S
  119. ExpireDate
  120.     1S2S
  121. The document and its responses will be archived 
  122. on a schedule determined by the Archive Profile
  123.     This document was marked expired on
  124. ExpireDate
  125. ExpireDateDisplay
  126. Status
  127. StatusListv
  128.     4S6S7S8S9S
  129.     Reviewers:    
  130. Reviewers
  131. Reviewers
  132. Reviewers
  133. Status
  134. StatusListv
  135. PreviousReviewers
  136.     4S6S7S8S9S10S11S12S13S
  137.     Previous reviewers:
  138. PreviousReviewers
  139. PreviousReviewers
  140. Status
  141. StatusListv
  142.     4S6S7S8S9S
  143.     Current reviewer:    
  144. CurrentReviewers
  145. CurrentReviewers
  146. Status
  147. StatusListv
  148. FutureReviewers
  149.     4S6S7S8S9S10S11S12S13S
  150.     Future reviewers:
  151. FutureReviewers
  152. FutureReviewers
  153. Status
  154. StatusListv
  155. Status
  156. StatusListv
  157.     4S6S7S8S9S13S15S16S17S18S
  158.     Review type:
  159. ReviewStyle
  160. ReviewStyle
  161. Serial review | Serial.NoVersionsSerial (keep all revisions) | Serial.VersionsDocument reservations | Parallel.NoVersionsResponse review | Parallel.Versions
  162.     Deadline:
  163. ReviewWindow
  164. ReviewWindow
  165. No time limit for each review | NoLimitMove to next reviewer after: | MoveOnKeep sending reminders after: | Reminder
  166. ReviewTime
  167. ReviewTime
  168. ReviewWindow
  169. NoLimit
  170. day(s)
  171.     3S4S6S8S
  172. tmpReviewUnits
  173.     Notification:
  174. NotifyAfter
  175. NotifyAfter
  176. Notify originator after each reviewer | EachNotify originator after final reviewer | Final
  177. ReviewerLog
  178.     1S2S3S4S
  179. Reviewer Log
  180. ReviewerLog
  181.     1S2S
  182. ReviewerLog
  183. ReviewerLog
  184.     ....................
  185. BodyEnter the text (or a description) of the document.
  186. _Edit Document
  187. DocumentAuthors
  188.     9S15S
  189. Categori_zeK
  190. _Forward
  191. _Move to Folder...
  192. _Remove from FolderK
  193. Send Docu_ment
  194. O=Lotus Notes
  195. O=Lotus Notes
  196. PURSAFO
  197. |.:#U
  198. O=Lotus Notes
  199. CN=Lotus Notes Template Development/O=Lotus Notes
  200. PURSAFO
  201. Fde!f^^
  202. $TITLE
  203. $Info
  204. $SubForms
  205. $WindowTitle
  206. $Script
  207. $$Script_O
  208. $$ScriptName
  209. $$Reviewers
  210. $Reviewers_O
  211. TimeCreated
  212. ReviewTime
  213. $Body
  214. $ACTIONS
  215. OriginalSubject
  216. OriginalSubject
  217. OriginalSubject
  218. Subject
  219.     1S2S3S10S12S
  220. NewRespTitle
  221. New Response to "
  222. OriginalSubject
  223.     0R1S2S3S4S5S6S
  224. StandardTitle
  225. Response 
  226.  of "
  227.  to "
  228. OriginalSubject
  229.     0R1S2S3S4S8S9S10S11S12S13S14S15S16S17S
  230. NewRespTitle
  231. StandardTitle
  232.     0R4S6S
  233. "MS Sans Serif
  234. Times New Roman
  235.  Response
  236. @___@
  237. <a>7`^
  238. `!bb!R
  239. SubjectKey thought of this response
  240.     Created by
  241. FromThe name of the person who composed the response
  242. DateThe date/time when the document was composed
  243. TimeCreated
  244. ExpireDate
  245.     1S2S
  246. The document and its responses will be archived 
  247. on a schedule determined by the Archive Profile
  248.     This document was marked expired on
  249. ExpireDate
  250. ExpireDateDisplay
  251. @___@
  252. <a>7`^
  253. `!bb!R
  254. BodyEnter the text of your response
  255.     -------------------------------------------------------------------------------------------------------------------------------------------------
  256.     Hidden Fields:    
  257. OriginalSubject
  258. OriginalSubject
  259. Subject
  260.     7S9S
  261. OriginalSubjectHidden field to store topic of Main Document
  262. Closes 
  263.     0S0E
  264. _Edit Document
  265. Categori_zeb
  266. Send Docu_ment
  267. _Forward
  268. _Move to Folder...
  269. _Remove from Folder?
  270. O=Lotus Notes
  271. O=Lotus Notes
  272. PURSAFO
  273. |.:#U
  274. O=Lotus Notes
  275. CN=Lotus Notes Template Development/O=Lotus Notes
  276. PURSAFO
  277. Fde!f^^
  278. $TITLE
  279. $Info
  280. $WindowTitle
  281. $$Script_O
  282. $$ScriptName
  283. TimeCreated
  284. $Body
  285. $ACTIONS
  286. Locked
  287.     1S2S3S
  288. DocumentAuthors
  289. CurrentReviewers
  290.     0R1S2S3S8S9S11S13S
  291.     0S0E
  292. O=Lotus Notes
  293. O=Lotus Notes
  294. PURSAFO
  295. |.:#U
  296. O=Lotus Notes
  297. CN=Lotus Notes Template Development/O=Lotus Notes
  298. PURSAFO
  299. Fde!f^^
  300. +i)"E
  301. $TITLE
  302. $Comment
  303. $Formula
  304. $TYPE
  305. $Operation
  306. $Scan
  307. NewDocTitle
  308. New Response to "
  309. Subject
  310.     1S2S3S4S5S6S
  311. StandardTitle
  312. Response to "
  313. ImmediateParentSubject"
  314.     0R1S2S3S4S5S6S
  315. NewDocTitle
  316. StandardTitle
  317.     0R4S6S
  318. "MS Sans Serif
  319. Times New Roman
  320.  Response to Response
  321. @___@
  322. <a>7`^
  323. `!bb!R
  324. SubjectKey thought of this response
  325.     Created by:
  326. FromThe name of the person who composed the response
  327. DateThe date/time when the document was composed
  328. TimeCreated
  329. ExpireDate
  330.     1S2S
  331. The document and its responses will be archived 
  332. on a schedule determined by the Archive Profile
  333.     This document was marked expired on
  334. ExpireDate
  335. ExpireDateDisplay
  336. @___@
  337. <a>7`^
  338. `!bb!R
  339. BodyEnter the text of your response
  340.     -------------------------------------------------------------------------------------------------------------------------------------------------
  341.     Hidden Fields:    
  342. OriginalSubject
  343. OriginalSubject
  344. Subject
  345.     7S9S
  346. OriginalSubjectHidden field to store topic of Main Document
  347. Subject
  348. Subject
  349. OriginalSubject
  350.     7S9S
  351. ImmediateParentSubject
  352. Closeu 
  353.     0S0E
  354. _Edit Document
  355. Categori_ze
  356. Send Docu_ment
  357. _Forward
  358. _Move to Folder...
  359. _Remove from Folder
  360. O=Lotus Notes
  361. O=Lotus Notes
  362. PURSAFO
  363. |.:#U
  364. O=Lotus Notes
  365. CN=Lotus Notes Template Development/O=Lotus Notes
  366. PURSAFO
  367. Fde!f^^
  368. $TITLE
  369. $Info
  370. $WindowTitle
  371. $$Script_O
  372. $$ScriptName
  373. TimeCreated
  374. $Body
  375. $ACTIONS
  376. $SUBVIEWBy _Author|By Author
  377. Scope
  378. Private
  379. ExpireDate
  380. _ViewIcon
  381.     2S3S4S6S8S9S12S14S
  382. DocumentG
  383. Status
  384. StatusY
  385. Subject
  386. $VersionOpt
  387. Subject
  388.   (Original document in review cycle)
  389. ReviewStyle
  390. ParallelG
  391. Subject
  392.   (Reviewed by 
  393. LastEditor"
  394. Subject
  395.   (Reviewed by 
  396. PreviousReviewers
  397. Archive
  398. Subject
  399. Subject
  400. (Response to 
  401. OriginalSubject
  402. Subject
  403.  (Response to "
  404. OriginalSubject
  405.     6S9RS4E12S13S14S15S20RS8E22RS4E27RS8E28S29S31RS4E35S38RS9E39S40S41S42S2E43S44S46RS4E47S48S49S50S56S57S60R64S67RS4E69R70S71S73RS5E74S75S76S79R80S81S82S83S84S85S
  406. $45$42$36$43$Conflict
  407.     L1S2E1
  408. $45$36
  409. $36$43
  410. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesY##
  411. Review Status|Review Status
  412. Scope
  413. Private
  414. ExpireDate
  415. _ViewIcon
  416.     2S3S4S6S8S9S12S14S
  417. DocumentG
  418. $VersionOpt
  419. Original by 
  420. ReviewStyle
  421. Review by 
  422. LastEditor
  423. Subject
  424. Subject
  425.     6S9RS4E16RS9E22S25RS4E31RS9E32S33S2E37S40RS4E44R47S48S50RS5E52R53S54S56S57S58S59S63S65S66S
  426. CurrentReviewers
  427. FutureReviewers
  428.     5S6S8S10S
  429. Status$40$41SubjectFrom$26DueDateTime$Conflict$REF
  430. Statush
  431. Status
  432.     L1S5S6S7S8S1%
  433. StatusDueDateTime
  434. Subject$26
  435. DueDateTime$26
  436. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesY#############
  437. $SUBVIEW($All)|($All)
  438. Scope
  439. Private
  440. ExpireDate
  441. _ViewIcon
  442.     2S3S4S6S8S9S12S14S
  443. DocumentG
  444. $VersionOpt
  445. Original by 
  446. ReviewStyle
  447. Review by 
  448. LastEditor
  449. Subject
  450. Subject
  451.     6S9RS4E16RS9E17S18S22S25RS4E31RS9E32S33S2E37S40RS4E44R47S48S50RS5E52R53S54S56S57S58S59S63S65S66S
  452. Categories$51$54$52Subject$25$53$Conflict$REF
  453. Categories$54$25
  454. Subject
  455. $25$53
  456. $53$25
  457. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesTYd########################################
  458. DocumentWorkflowCUA3
  459. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes################
  460.  $45,
  461. Scope
  462. Private
  463. ExpireDate
  464. _ViewIcon
  465.     2S3S4S6S8S9S12S14S
  466. $36Modified
  467. $43Title
  468. DocumentG
  469. Status
  470. StatusY
  471. Subject
  472. $VersionOpt
  473. Subject
  474.   (Original document in review cycle)
  475. ReviewStyle
  476. ParallelG
  477. Subject
  478.   (Reviewed by 
  479. LastEditor"
  480. Subject
  481.   (Reviewed by 
  482. PreviousReviewers
  483. Archive
  484. Subject
  485. Subject
  486. (Response to 
  487. OriginalSubject
  488. Subject
  489.  (Response to "
  490. OriginalSubject
  491.     6S9RS4E12S13S14S15S20RS8E22RS4E27RS8E28S29S31RS4E35S38RS9E39S40S41S42S2E43S44S46RS4E47S48S49S50S56S57S60R64S67RS4E69R70S71S73RS5E74S75S76S79R80S81S82S83S84S85S&
  492. Categori_ze
  493. _Edit Document
  494. Send Docu_ment
  495. _Forward
  496. Navigator H
  497. EnvName
  498. NavigatorState"
  499.     1S2S
  500. EnvName
  501. EnvName
  502. Main Navigator
  503. EnvName
  504.     0R11RS8E13RS20E14S20RS20E30RS8E32RS20E33S39RS20E44RS9E
  505. New Document,
  506. Document
  507.     0S0E
  508. Response,
  509. Response
  510.     0S0E
  511. Response to Response8
  512. Response to Response
  513.     0S0E
  514. _Move to Folder...    
  515. _Remove from Folder...
  516. O=Lotus Notes
  517. O=Lotus Notes
  518. PURSAFO
  519. |.:#U
  520. O=Lotus Notes
  521. CN=Lotus Notes Template Development/O=Lotus Notes
  522. PURSAFO
  523. Fde!f^^
  524. 2_gj7.
  525. $TYPE
  526. $Index
  527. $Formula
  528. $FormulaClass
  529. $VIEWFORMAT
  530. $Comment
  531. $ACTIONS
  532.  Status  $40
  533. Scope
  534. Private
  535. ExpireDate
  536. _ViewIcon
  537.     2S3S4S6S8S9S12S14S
  538. DocumentG
  539. $VersionOpt
  540. Original by 
  541. ReviewStyle
  542. Review by 
  543. LastEditor
  544. Subject
  545. Subject
  546.     6S9RS4E16RS9E22S25RS4E31RS9E32S33S2E37S40RS4E44R47S48S50RS5E52R53S54S56S57S58S59S63S65S66S
  547. SubjectTitleFromCreated By$26ReviewersX
  548. CurrentReviewers
  549. FutureReviewers
  550.     5S6S8S10SDueDateTimeDue&
  551. Categori_ze
  552. _Edit Document
  553. Send Docu_ment
  554. _Forward
  555. Navigator H
  556. EnvName
  557. NavigatorState"
  558.     1S2S
  559. EnvName
  560. EnvName
  561. Main Navigator
  562. EnvName
  563.     0R11RS8E13RS20E14S20RS20E30RS8E32RS20E33S39RS20E44RS9E
  564. New Document,
  565. Document
  566.     0S0E
  567. Response,
  568. Response
  569.     0S0E
  570. Response to Response8
  571. Response to Response
  572.     0S0E
  573. _Move to Folder...    
  574. _Remove from Folder...
  575. Unlock Document
  576. (Unlock Document)
  577. Server
  578.     1S2S6S
  579.     0R1S2S6S
  580. Server
  581.     0R7S8S11S13S14S15S16S
  582. O=Lotus Notes
  583. O=Lotus Notes
  584. PURSAFO
  585. |.:#U
  586. O=Lotus Notes
  587. CN=Lotus Notes Template Development/O=Lotus Notes
  588. PURSAFO
  589. Fde!f^^
  590. $Index
  591. $Formula
  592. $FormulaClass
  593. $VIEWFORMAT
  594. $Comment
  595. $ACTIONS
  596.  Categories$51
  597. Scope
  598. Private
  599. ExpireDate
  600. _ViewIcon
  601.     2S3S4S6S8S9S12S14S
  602. DocumentG
  603. $VersionOpt
  604. Original by 
  605. ReviewStyle
  606. Review by 
  607. LastEditor
  608. Subject
  609. Subject
  610.     6S9RS4E16RS9E17S18S22S25RS4E31RS9E32S33S2E37S40RS4E44R47S48S50RS5E52R53S54S56S57S58S59S63S65S66S
  611. SubjectTitle$25Modified
  612. $53Author,
  613. Categori_zeo
  614. _Edit Document
  615. Send Docu_ment
  616. _Forward
  617. Navigator
  618. EnvName
  619. NavigatorState"
  620.     1S2S
  621. EnvName
  622. EnvName
  623. Main Navigator
  624. EnvName
  625.     0R11RS8E13RS20E14S20RS20E30RS8E32RS20E33S39RS20E44RS9E
  626. New Document,
  627. Document
  628.     0S0E
  629. Response,
  630. Response
  631.     0S0E
  632. Response to Response8
  633. Response to Response
  634.     0S0E
  635. _Move to Folder...    
  636. _Remove from Folder...
  637. O=Lotus Notes
  638. O=Lotus Notes
  639. PURSAFO
  640. |.:#U
  641. O=Lotus Notes
  642. CN=Lotus Notes Template Development/O=Lotus Notes
  643. PURSAFO
  644. Fde!f^^
  645. @GZ3b
  646. $TYPE
  647. $TITLE
  648. $Index
  649. $Formula
  650. $FormulaClass
  651. $VIEWFORMAT
  652. $Comment
  653. $ACTIONS
  654.  Fields:-------------------------------------------------------------------
  655. DocumentAuthors
  656.     4S6S
  657. DocumentAuthors
  658. Scope
  659. Private
  660. Reviewers
  661.     3S4S6S7S8S10SDocumentReaders
  662. LastEditor
  663. _ViewIcon
  664. Scope
  665. Public
  666.     1S2S
  667. My Favorite DocumentsMy Favorite Documents/L
  668. Scope
  669. Private
  670. ExpireDate
  671. _ViewIcon
  672.     2S3S4S6S8S9S12S14S
  673. DocumentG
  674. Status
  675. StatusY
  676. Subject
  677. $VersionOpt
  678. Subject
  679.   (Original document in review cycle)
  680. ReviewStyle
  681. ParallelG
  682. Subject
  683.   (Reviewed by 
  684. LastEditor"
  685. Subject
  686.   (Reviewed by 
  687. PreviousReviewers
  688. Archive
  689. Subject
  690. Subject
  691. (Response to 
  692. OriginalSubject
  693. Subject
  694.  (Response to "
  695. OriginalSubject
  696.     6S9RS4E12S13S14S15S20RS8E22RS4E27RS8E28S29S31RS4E35S38RS9E39S40S41S42S2E43S44S46RS4E47S48S49S50S56S57S60R64S67RS4E69R70S71S73RS5E74S75S76S79R80S81S82S83S84S85S
  697. $29$30$27From$Conflict
  698. From$27
  699. Debbie BrancoCN=Lotus Notes Template Development/O=Lotus NotesFYpd
  700. ##########################
  701. ReviewOptionsReviewOptions
  702. CN=Catherine Duffy/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCD
  703. ##########################################################
  704. MS Office\Excel WorksheetExcelWorksheet Document
  705. DocumentWorkflow(DocProperties) | DocProperties
  706. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#####################
  707. MS Office\Paintbrush PicturePaintbrush Document
  708. DocumentWorkflow(DocProperties) | DocProperties
  709. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes
  710. ##########################################################
  711. MS Office\Word DocumentWordDoc Document
  712. DocumentWorkflow(DocProperties) | DocProperties
  713. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes##############
  714. Mark/Unmark Document As Expired
  715. E4fL3
  716. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes########################
  717. ##########################################################
  718. ##########################################################
  719. Scope
  720. Private
  721. ExpireDate
  722. _ViewIcon
  723.     2S3S4S6S8S9S12S14S
  724. $30Title
  725. DocumentG
  726. Status
  727. StatusY
  728. Subject
  729. $VersionOpt
  730. Subject
  731.   (Original document in review cycle)
  732. ReviewStyle
  733. ParallelG
  734. Subject
  735.   (Reviewed by 
  736. LastEditor"
  737. Subject
  738.   (Reviewed by 
  739. PreviousReviewers
  740. Archive
  741. Subject
  742. Subject
  743. (Response to 
  744. OriginalSubject
  745. Subject
  746.  (Response to "
  747. OriginalSubject
  748.     6S9RS4E12S13S14S15S20RS8E22RS4E27RS8E28S29S31RS4E35S38RS9E39S40S41S42S2E43S44S46RS4E47S48S49S50S56S57S60R64S67RS4E69R70S71S73RS5E74S75S76S79R80S81S82S83S84S85S$27Date
  749. FromAuthor&
  750. Categori_ze
  751. _Edit Document
  752. Send Docu_ment
  753. _Forward
  754. Navigator
  755. EnvName
  756. NavigatorState"
  757.     1S2S
  758. EnvName
  759. EnvName
  760. Main Navigator
  761. EnvName
  762.     0R11RS8E13RS20E14S20RS20E30RS8E32RS20E33S39RS20E44RS9E
  763. New Document,
  764. Document
  765.     0S0E
  766. Response,
  767. Response
  768.     0S0E
  769. Response to Response8
  770. Response to Response
  771.     0S0E
  772. _Move to Folder...    
  773. _Remove from Folder...
  774. O=Lotus Notes
  775. O=Lotus Notes
  776. PURSAFO
  777. |.:#U
  778. O=Lotus Notes
  779. CN=Lotus Notes Template Development/O=Lotus Notes
  780. PURSAFO
  781. Fde!f^^
  782. $Name
  783. $Index
  784. $Formula
  785. $FormulaClass
  786. $VIEWFORMAT
  787. $Comment
  788. $ACTIONS
  789. ($All)
  790. TextBox1All Documents
  791. TextBox2By Author
  792. TextBox3My Favorite Documents
  793. TextBox4By Review Status
  794. TitleDocuments:
  795. AllDocs
  796. ($All)
  797. ByAuthor
  798. By Author
  799. ByStatus
  800. Review Status
  801. MyFavDocs
  802. My Favorite Documents
  803. O=Lotus Notes
  804. O=Lotus Notes
  805. PURSAFO
  806. |.:#U
  807. O=Lotus Notes
  808. CN=Lotus Notes Template Development/O=Lotus Notes
  809. PURSAFO
  810. Fde!f^^
  811. $ViewMapDataset
  812. $ViewMapLayout
  813. Times New Roman
  814. bullet
  815. Using Microsoft Office Library
  816.  @  @@ @` @
  817. @@ @@@@@`@@
  818. `@ `@@`@``@
  819. This database allows you to capture and track information about documents.
  820. Functions of the Database:
  821. To add a document to this database
  822. Select Create, Document.
  823. You can enter document information in several ways: by typing it using the Notes editor, by scanning in hard copy, or by importing or attaching an electronic file. 
  824. To respond to a document
  825. Highlight that document in a view, then select Create, Response.
  826. To respond to a response
  827. Highlight the response you wish to respond to, then select Create, Response to Response.
  828.     To flag a document as Private:
  829.     You can use the "Mark Private" and
  830.     "Mark Public" actions in the template to control whether anyone other than yourself can read a specific document.  For example, if you have not completed the writing of a particular document, you can click the "Mark Private" action and others will not be able to see the document.  When you complete the document, you can click the
  831.     "Mark Public"
  832.     action to make it available for others to read.  
  833.     If a document is marked private after it has been submitted for review, the document author and the reviewers will be able to read the document.
  834. Features
  835.     Document Review Cycle:
  836.     The author of a document has the option of setting up a document review cycle for that document. To do so simply click on the Setup Review Cycle action button and fill in the necessary information.  
  837.     Note:  
  838.     Do not use 
  839.     @Domain
  840.      when entering approver names.  Any domain added will be stripped off and may cause complications when attempting to route a request.  Also, only enter Person-names as approvers.  Group names are not supported.
  841.     Clearing a Review Cycle:
  842.     Document Library, SmartSuite 96 Library, and MS Office Library provides an action button to "Clear Review Cycle".  This is accessible only by the document's originator.  You can either use the action prior to submitting a document for review, or after submittal.  Below are the guidelines:
  843.     o    Clearing a review cycle prior to submitting for review:  Select this if you, as originator, wish to change the review cycle settings before your reviewers receive notification.
  844.     o    Clearing a review cycle after submittal:  If reviewers have already begun or completed their document review, their work will be preserved.  If reviewers were notified to review a document and they have not yet begun the review, they will receive a courtesy notice that they are no longer required to conduct a review.
  845.     Microsoft Office Library Review Styles:
  846.     Serial Review:
  847.       Documents are routed for review one at a time, in sequence to the reviewers chosen by the author.
  848.     o    All edits are made within the same document, but an unedited copy of the original document is also saved.
  849.     Serial Review (keep all revisions):
  850.       Documents are routed for review one at a time, in sequence to the reviewers chosen by the author.
  851.     o    Edits are made within a copy of the original, which also includes all comments from previous reviewers
  852.     o    All old versions become response documents (as well as a copy of the original)
  853.     Document Reservations:
  854.       Requests for document review are routed in parallel (that is, all at the same time).  When one reviewer opens the document, a "file locking" occurs at the server which warns any other user who happens to edit the document that a review is in progress.  
  855.     o    Review comments or edits are made into a copy of the original document
  856.     o    As with the others, a clean copy of the original is always kept
  857.     Response Review:
  858.       Same as Document Reservations (but with no file locking).
  859.     o    Review comments or edits are saved as response documents to the original document.  
  860.     o    As with the others, a clean copy of the original is always kept
  861.     Processing Late Reviews:
  862.     If the Process Late Reviews agent is enabled, it selects those documents which are in review and have due dates which have passed.  Based upon the review style of the document, it then either moves it along to the next reviewer, marks it as complete, or simply notifies the current reviewer(s) that their review is overdue.
  863.     Unlock Document:
  864.     Occasionally a document is accidentally left in a locked state.  The Unlock Document action can be accessed by designers and managers from the Review Status view's Action menu to unlock the document.
  865.     Document Archiving:
  866.     This is a process by which certain documents are removed from the current database and stored in a different database.  This keeps the library up-to-date with only the latest topics.  Most of the Archiving activities take place from the "Archiving" view.  You must switch to this view in order to initiate archiving on a library database.
  867.     To set up archiving on any library database, switch to the Archiving view and click the action called "Setup Archive".  The Archive Profile appears.  This document contains criteria that the user specifies for archiving topics in a library (e.g., inactive after 'x' days, or expired after 'x' days).  The archive database is automatically created when the Profile is saved.  The archival database filename is also specified in the Archive Profile; the title of the archive will be the title of the Microsoft Office Library database followed by "(Archived)".  After the archive criteria have been specified in the Archive Profile, other agents run on the database to move the document(s).  
  868.     Mark/Unmark Document as Expired:
  869.       Marks a topic as "expired".  If the Archive Profile specifies that 
  870.     expired 
  871.     topics should be archived, the document(s) marked with this agent would fall into that criterion.  If a document is already marked as expired, this agent tells the user what the expire date was, and will ask if the user wants to un-expire it.
  872.     Periodic Archive:
  873.       Reviews the Archive Profile and moves documents which meet the archive criteria into the archive database.  This agent is run automatically on the server; the schedule is set by the database manager/designer.
  874.     DocObjects
  875.     This template is designed to work with Microsoft Office 95 and 97 applications.  The template takes advantage of the OLE concept of DocObjects (aka ActiveX) which basically involves the OLE/ActiveX object going in-place active and taking over the entire document window.  The affect is that it appears as if the object's server is running as a stand-alone application.
  876.     Please see the Troubleshooting section in the Notes Client 4.6 release notes for information regarding any known issues with this template.
  877. O=Lotus Notes
  878. O=Lotus Notes
  879. PURSAFO
  880. |.:#U
  881. O=Lotus Notes
  882. CN=Lotus Notes Template Development/O=Lotus Notes
  883. PURSAFO
  884. Fde!f^^
  885. $Info
  886. $Body
  887. Times New Roman
  888. Task List
  889. &Switch To
  890. About Microsoft Office Library
  891.  @  @@ @` @
  892. @@ @@@@@`@@
  893. `@ `@@`@``@
  894.     What does this database do?
  895.     A Document Library application is an electronic filing cabinet that stores reference documents for access by a workgroup.  The database might contain anything from environmental impact statements for a group of engineers to financial statements for a group of loan officers.
  896.     Who will use this database?
  897.     Anyone who wishes to create a record of a document or review available documents may use this database.
  898.     Important Features
  899.     Review Cycle:
  900.      Used to route a document to a series of recipients.
  901.     Document Archiving:
  902.      Used to move expired documents to an archive database.
  903.      In-place Editing:
  904.      Create and edit Office documents within the Notes environment. 
  905.     Suggestions for Modifications
  906.     Full text search: 
  907.     If you wish to use Notes' full text search capabilities for a database created with this template, select menu File, Database, Properties, go to the Full Text panel and then select Create Index... to create the full text index.
  908.     Where to find more information?
  909.     -  More information can be found by selecting Help, Using Database
  910.     Access Control
  911.     Very Important:  
  912.     Access level should be 
  913.     Author
  914.      for all users of this database.  This will prevent unauthorized editing of documents within the database.  The Author fields within the forms govern who will be able to edit/review particular documents.   Errors will occur if someone with Editor access attempts to review a document when they are not an authorized reviewer of that document.
  915.     Important Note
  916.     - The Microsoft Office Library (4.6) template should only be used to create new applications. Upgrading existing Document Library applications with this template is not supported.
  917. O=Lotus Notes
  918. O=Lotus Notes
  919. PURSAFO
  920. |.:#U
  921. O=Lotus Notes
  922. CN=Lotus Notes Template Development/O=Lotus Notes
  923. PURSAFO
  924. Fde!f^^
  925. ]: ,Md
  926. $Info
  927. $Body
  928. Times New Roman
  929.  ReviewOptions
  930. Review style:
  931. ReviewStyle
  932. ReviewStyle
  933. Serial review | Serial.NoVersionsSerial (keep all revisions) | Serial.VersionsDocument reservations | Parallel.NoVersionsResponse review | Parallel.Versions
  934. ReviewWindow
  935. ReviewWindow
  936. No time limit on review | NoLimitMove to next reviewer after | MoveOnKeep sending reminders after | Reminder
  937. Allotted time:
  938. Notification:
  939. NofityAfter
  940. NotifyAfter
  941. Notify me after each reviewer | EachNotify me after final reviewer | Final
  942. ReviewWindow
  943. NoLimit
  944.     1S2S
  945. ReviewTime
  946. ReviewWindow
  947. NoLimit
  948. ReviewTime
  949. ReviewTime
  950.     3S4S6S8S14S
  951. ReviewWindow
  952. NoLimit
  953. ReviewTimeX
  954. Please enter a number.{
  955. ReviewTimeX
  956. Please enter a whole number which is greater than zero.
  957.     3S4S6S8S16S21S25S26S28S33S
  958. ReviewTime
  959. day(s)
  960. SaveChoices
  961. SaveChoices
  962. Save choices for next time. | 1
  963. Categori_ze
  964. _Edit Document
  965. Send Docu_ment
  966. _Forward
  967. _Move to Folder...
  968. _Remove from Folder$
  969. O=Lotus Notes
  970. O=Lotus Notes
  971. PURSAFO
  972. |.:#U
  973. O=Lotus Notes
  974. CN=Lotus Notes Template Development/O=Lotus Notes
  975. PURSAFO
  976. Fde!f^^
  977. ReviewTime_1
  978. $TITLE
  979. $Info
  980. $$ScriptName
  981. $Body
  982. $ACTIONS
  983. '++LotusScript Development Environment:2:5:(Options):0:74
  984. Option Public
  985. Use "OLERoutines"
  986. '++LotusScript Development Environment:2:5:(Forward):0:1
  987. '++LotusScript Development Environment:2:5:(Declarations):0:2
  988. DocumentWorkflow'++LotusScript Development Environment:2:5:(Options):0:66
  989. '++LotusScript Development Environment:2:5:(Forward):0:1
  990. Declare Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  991. Declare Sub Postopen(Source As Notesuidocument)
  992. Declare Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  993. Declare Sub Postmodechange(Source As Notesuidocument)
  994. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  995. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  996. '++LotusScript Development Environment:2:5:(Declarations):0:2
  997. '++LotusScript Development Environment:2:2:BindEvents:1:129
  998. Private Sub BindEvents(Byval Objectname_ As String)
  999.      Static Source As NOTESUIDOCUMENT
  1000.      Set Source = Bind(Objectname_)
  1001.      On Event Queryopen From Source Call Queryopen
  1002.      On Event Postopen From Source Call Postopen
  1003.      On Event Querymodechange From Source Call Querymodechange
  1004.      On Event Postmodechange From Source Call Postmodechange
  1005.      On Event Querysave From Source Call Querysave
  1006.      On Event Queryclose From Source Call Queryclose
  1007. End Sub
  1008. '++LotusScript Development Environment:2:2:Queryopen:1:12
  1009. Sub Queryopen(Source As Notesuidocument, Mode As Integer, Isnewdoc As Variant, Continue As Variant)
  1010.      Call DocQueryOpen(source, mode, isnewdoc, continue)
  1011. End Sub
  1012. '++LotusScript Development Environment:2:2:Postopen:1:12
  1013. Sub Postopen(Source As Notesuidocument)
  1014.      Call DocPostOpen(source)
  1015. End Sub
  1016. '++LotusScript Development Environment:2:2:Querymodechange:1:12
  1017. Sub Querymodechange(Source As Notesuidocument, Continue As Variant)
  1018.      If Not(source.InPreviewPane) Then 
  1019.           Call DocQueryModeChange(source, continue)
  1020.      Else
  1021.           continue = False
  1022.      End If
  1023. End Sub
  1024. '++LotusScript Development Environment:2:2:Postmodechange:1:12
  1025. Sub Postmodechange(Source As Notesuidocument)
  1026.      Call DocPostModeChange(source)
  1027. End Sub
  1028. '++LotusScript Development Environment:2:2:Querysave:1:12
  1029. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  1030.      If Not(source.InPreviewPane) Then Call DocQuerySave(source, continue)
  1031. End Sub
  1032. '++LotusScript Development Environment:2:2:Queryclose:1:12
  1033. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  1034.      If Not(source.InPreviewPane) Then Call DocQueryClose(source, continue)
  1035. End Sub
  1036.     DocumentWorkflow Subform
  1037.     :  This Subform includes the LotusScript, Actions, and hidden fields which are used in all versions of the Document form.
  1038.     Hidden Fields:-------------------------------------------------------------------
  1039. DocumentAuthors
  1040.     4S6S
  1041. DocumentAuthors
  1042. Scope
  1043. Private
  1044. Reviewers
  1045.     3S4S6S7S8S10SDocumentReaders
  1046. LastEditor
  1047. Document
  1048. Paintbrush Document
  1049. DocumentAuthors
  1050.     3S4S7S8S9S10StmpUseOLE
  1051. $OLEObjField
  1052. OLEBody
  1053. $OLEObjRichTextField
  1054. Close
  1055.     0S0E
  1056. Edit Document
  1057.     0S0E
  1058. Save and Close<
  1059.     0S0E
  1060. Mark PrivateF
  1061. Scope
  1062. Private
  1063.     1S2S3S
  1064. Scope
  1065. Private
  1066.     1S2S
  1067. Mark PublicKD
  1068. Scope
  1069. Public
  1070.     1S2S3S
  1071. Scope
  1072. Public
  1073. Scope
  1074.     1S2S3S4S
  1075. Submit for Review
  1076. Reviewers
  1077. Reviewers
  1078.     1S2S3S
  1079. Reviewers
  1080. Document Library
  1081. Please indicate who should review this document.
  1082.     0RR6S7S9S15S17S21S
  1083. Reviewers
  1084. Froma
  1085. Document Library
  1086. The Originator cannot be on the reviewer list.
  1087.     0RR9S15S21S23S27S
  1088. tmpAction
  1089. Submit
  1090.     0RR1S2S3S
  1091. SaveOptions
  1092.     0R1S2S3S
  1093. GoToField causes any active embedded objects to de-activate
  1094.     0R1S
  1095.     0R4S
  1096.     0R7S12S>
  1097. Status
  1098. StatusListv
  1099.     5S7S8S
  1100. Setup Review Cycle:
  1101. GetReviewCycle
  1102. Status
  1103. StatusList
  1104. ReviewCycle
  1105. ReviewStyle
  1106. ReviewWindow
  1107. ReviewTime
  1108. NotifyAfter
  1109. SaveChoices
  1110.     1S2S5S6S10S13S18S21S22S23S24S25S26S27S28S30S
  1111. ReviewCycle
  1112. GetReviewCycle
  1113. GetReviewCycle
  1114.     0RR1S2S5S6S8S10S14S
  1115. ReviewStyle
  1116. ReviewCycle
  1117. Serial.NoVersions
  1118. ReviewCycle
  1119.     0RR1S2S3S9S10S12S14S18S
  1120. ReviewWindow
  1121. ReviewCycle
  1122. NoLimit
  1123. ReviewCycle
  1124.     0R1S2S3S9S10S12S14S20S23S
  1125. ReviewTime
  1126. ReviewCycle
  1127. ReviewCycle
  1128.     0R1S2S3S9S10S12S14S20S23S
  1129. NotifyAfter
  1130. ReviewCycle
  1131. Final
  1132. ReviewCycle
  1133.     0R1S2S3S9S10S12S14S20S23S
  1134. SaveChoices
  1135. ReviewCycle
  1136. ReviewCycle
  1137.     0R1S2S3S9S10S12S14S18S
  1138. ReviewOptions
  1139. Review Cycle
  1140.     0RR10S12S13S15S20S
  1141. Status
  1142. StatusList
  1143.     0RR1S2S3S9S12S
  1144. ReviewCycle
  1145. SaveChoices
  1146. ReviewStyle
  1147. ReviewWindow
  1148. ReviewTime
  1149. NotifyAfter
  1150. SaveChoices
  1151.     0R1S2S3S6S7S9S11S14S15S16S17S18S19S20S21S23S
  1152. ReviewTime
  1153. ReviewWindow
  1154. NoLimit
  1155. ReviewTimeX
  1156.     0RR1S2S3S6S7S9S11S
  1157. tmpReviewUnits
  1158. ReviewWindow
  1159. NoLimit
  1160. day(s)
  1161.     0R1S2S3S6S7S9S11S
  1162. $OLEObjProgID
  1163. (DocProperties)
  1164. Review Options
  1165.     0RR6S7Sr
  1166. tmpCurrentUser
  1167. Status
  1168. StatusListv
  1169.     1S2S6S8S9S13S15S16S
  1170. Clear Review Cycle
  1171. InReview
  1172. Status
  1173. StatusListv
  1174.     1S2S8S10S11S13S15S
  1175. ReviewerList
  1176. InReview
  1177. CurrentReviewers
  1178.     0R1S2S6S8S
  1179. Status
  1180. StatusList
  1181.     0RR1S2S3S7S
  1182. ReviewSequence
  1183. All Reviewers simultaneously
  1184.     0R1S2S3S
  1185. Versioning
  1186. Edit Original Document
  1187.     0R1S2S3S
  1188. NotifyAfter
  1189. Notify Originator after each Reviewer
  1190.     0R1S2S3S
  1191. Reviewers
  1192.     0R1S2S3S
  1193. PreviousReviewers
  1194.     0R1S2S3S
  1195. CurrentReviewers
  1196.     0R1S2S3S
  1197. FutureReviewers
  1198.     0R1S2S3S
  1199. $VersionOpt
  1200.     0R1S2S3S
  1201. InReview
  1202. ReviewerList
  1203. Review of document:  
  1204. Subject
  1205. I no longer require you to review this document.  Thank you for your efforts.
  1206. tmpCurrentUser"
  1207. Subject
  1208.     0RR4S8S10S12S13S14S16S18S19S20S24S26S27S28S29S33S35S36S37S38S40S41S42S45S
  1209. Document Library
  1210. The Review Cycle has been cleared.
  1211.     0RR4S6S
  1212. tmpCurrentUser
  1213. Status
  1214. StatusListv
  1215.     1S2S6S8S9S13S15S16S17S18S19S20S
  1216. My Review is Complete
  1217. tmpAction
  1218. Complete
  1219.     1S2S3S
  1220. SaveOptions
  1221.     0R1S2S3S
  1222. GoToField causes any active embedded objects to de-activate
  1223.     0RR1S
  1224.     0R4S
  1225.     0R7S12S4
  1226. tmpCurrentUser
  1227. InProcess
  1228. Properties...
  1229. DocProperties
  1230.     0S0E
  1231. tmpUseOle
  1232. $OLEVersion
  1233.     0S1S2E2S3S4S
  1234. O=Lotus Notes
  1235. O=Lotus Notes
  1236. PURSAFO
  1237. |.:#U
  1238. O=Lotus Notes
  1239. CN=Lotus Notes Template Development/O=Lotus Notes
  1240. PURSAFO
  1241. Fde!f^^
  1242. $TITLE
  1243. $Info
  1244. $Script
  1245. $$Script_O
  1246. $$ScriptName
  1247. $$FormScript
  1248. $$$FormScript_O
  1249. $Body
  1250. $ACTIONS
  1251. '++LotusScript Development Environment:2:5:(Options):0:66
  1252. '++LotusScript Development Environment:2:5:(Forward):0:1
  1253. Declare Sub Exiting(Source As Field)
  1254. '++LotusScript Development Environment:2:5:(Declarations):0:2
  1255. '++LotusScript Development Environment:2:2:BindEvents:1:129
  1256. Private Sub BindEvents(Byval Objectname_ As String)
  1257.      Static Source As FIELD
  1258.      Set Source = Bind(Objectname_)
  1259.      On Event Exiting From Source Call Exiting
  1260. End Sub
  1261. '++LotusScript Development Environment:2:2:Exiting:1:12
  1262. Sub Exiting(Source As Field)
  1263.      formdoc.refresh
  1264. End Sub
  1265. New Excel Worksheet
  1266. Subject
  1267.     4S6S
  1268. '++LotusScript Development Environment:2:5:(Options):0:74
  1269. Option Public
  1270. '++LotusScript Development Environment:2:5:(Forward):0:1
  1271. '++LotusScript Development Environment:2:5:(Declarations):0:2
  1272.  ExcelWorksheet Document
  1273. DocumentWorkflow
  1274.     DocumentWorkflow Subform
  1275.     :  This Subform includes the LotusScript, Actions, and hidden fields which are used in all versions of the Document form.
  1276.     Hidden Fields:-------------------------------------------------------------------
  1277. DocumentAuthors
  1278.     4S6S
  1279. DocumentAuthors
  1280. Scope
  1281. Private
  1282. Reviewers
  1283.     3S4S6S7S8S10SDocumentReaders
  1284. LastEditor
  1285. DocumentAuthors
  1286.     0S0E
  1287. tmpUseOLE
  1288. $OLEObjField
  1289. OLEBody
  1290. $OLEObjRichTextField
  1291. _ViewIcon
  1292. Excel.Sheet
  1293. $OLEObjProgID
  1294. Scope
  1295. Public
  1296. tmpUseOle
  1297.     1S2S3S2E4S5S2E6S
  1298. (DocProperties) | DocProperties
  1299. <a>7`^
  1300. `!bb!R
  1301. Title:
  1302. Subject
  1303.     0S0E
  1304. SubjectRequired: description of this document 
  1305.     Created by:    
  1306. FromDocument author name
  1307.      on 
  1308. DateThe date/time when the document was composed
  1309.      at 
  1310. TimeCreated
  1311.     Category
  1312. Miscellaneous
  1313. Categories
  1314. You must enter a category for your document
  1315.     3S4S6S11SCategoriesPress ENTER for list of keywords or to add a new keyword
  1316. ($All)
  1317.     4S6S
  1318. Status
  1319. StatusListv
  1320.     4S6S7S8S9S
  1321.     Reviewers:    
  1322. Reviewers
  1323. Reviewers
  1324. Reviewers
  1325. Status
  1326. StatusListv
  1327. PreviousReviewers
  1328.     4S6S7S8S9S10S11S12S13S
  1329.     Previous reviewers:
  1330. PreviousReviewers
  1331. PreviousReviewers
  1332. Status
  1333. StatusListv
  1334.     4S6S7S8S9S
  1335.     Current reviewer:    
  1336. CurrentReviewers
  1337. CurrentReviewers
  1338. Status
  1339. StatusListv
  1340. FutureReviewers
  1341.     4S6S7S8S9S10S11S12S13S
  1342.     Future reviewers:
  1343. FutureReviewers
  1344. FutureReviewers
  1345. Status
  1346. StatusListv
  1347. Status
  1348. StatusListv
  1349.     4S6S7S8S9S13S15S16S17S18S
  1350.     Review type:
  1351. ReviewStyle
  1352. ReviewStyle
  1353. Serial review | Serial.NoVersionsSerial (keep all revisions) | Serial.VersionsDocument reservations | Parallel.NoVersionsResponse review | Parallel.Versions
  1354.     Deadline:
  1355. ReviewWindow
  1356. ReviewWindow
  1357. No time limit for each review | NoLimitMove to next reviewer after: | MoveOnKeep sending reminders after: | Reminder
  1358. ReviewTime
  1359. ReviewTime
  1360. ReviewWindow
  1361. NoLimit
  1362. day(s)
  1363.     3S4S6S8S
  1364. tmpReviewUnits
  1365.     Notification:
  1366. NotifyAfter
  1367. NotifyAfter
  1368. Notify originator after each reviewer | EachNotify originator after final reviewer | Final
  1369.     ....................
  1370. ReviewerLog
  1371.     1S2S3S4S
  1372. Reviewer Log
  1373. ReviewerLog
  1374.     1S2S
  1375. ReviewerLog
  1376. ReviewerLog
  1377. OLEBody
  1378. BodyEnter the text (or a description) of the document.
  1379. _Edit Document
  1380. DocumentAuthors
  1381.     9S15S
  1382. Categori_zeK
  1383. _Forward
  1384. _Move to Folder...
  1385. _Remove from FolderK
  1386. Send Docu_ment
  1387. O=Lotus Notes
  1388. O=Lotus Notes
  1389. PURSAFO
  1390. |.:#U
  1391. O=Lotus Notes
  1392. CN=Lotus Notes Template Development/O=Lotus Notes
  1393. PURSAFO
  1394. Fde!f^^
  1395. $$Reviewers
  1396. $Reviewers_O
  1397. $TITLE
  1398. $Info
  1399. $SubForms
  1400. $WindowTitle
  1401. $Script
  1402. $$Script_O
  1403. $$ScriptName
  1404. _ViewIcon
  1405. TimeCreated
  1406. ReviewTime
  1407. $Body
  1408. $ACTIONS
  1409. '++LotusScript Development Environment:2:5:(Options):0:66
  1410. '++LotusScript Development Environment:2:5:(Forward):0:1
  1411. Declare Sub Exiting(Source As Field)
  1412. '++LotusScript Development Environment:2:5:(Declarations):0:2
  1413. '++LotusScript Development Environment:2:2:BindEvents:1:129
  1414. Private Sub BindEvents(Byval Objectname_ As String)
  1415.      Static Source As FIELD
  1416.      Set Source = Bind(Objectname_)
  1417.      On Event Exiting From Source Call Exiting
  1418. End Sub
  1419. '++LotusScript Development Environment:2:2:Exiting:1:12
  1420. Sub Exiting(Source As Field)
  1421.      formdoc.refresh
  1422. End Sub
  1423. "MS Sans Serif
  1424. FBody
  1425. New Paintbrush Picture
  1426. Subject
  1427.     4S6S
  1428. '++LotusScript Development Environment:2:5:(Options):0:74
  1429. Option Public
  1430. '++LotusScript Development Environment:2:5:(Forward):0:1
  1431. '++LotusScript Development Environment:2:5:(Declarations):0:2
  1432.  Paintbrush Document
  1433. DocumentWorkflow
  1434.     DocumentWorkflow Subform
  1435.     :  This Subform includes the LotusScript, Actions, and hidden fields which are used in all versions of the Document form.
  1436.     Hidden Fields:-------------------------------------------------------------------
  1437. DocumentAuthors
  1438.     4S6S
  1439. DocumentAuthors
  1440. Scope
  1441. Private
  1442. Reviewers
  1443.     3S4S6S7S8S10SDocumentReaders
  1444. LastEditor
  1445. Document
  1446. Paintbrush Document
  1447. DocumentAuthors
  1448.     3S4S7S8S9S10StmpUseOLE
  1449. $OLEObjField
  1450. OLEBody
  1451. $OLEObjRichTextField
  1452. _ViewIcon
  1453. Scope
  1454. Public
  1455.     1S2S
  1456. Scope
  1457. Public
  1458. tmpUseOle
  1459.     1S2S3S2E4S5S2E6S
  1460. (DocProperties) | DocProperties
  1461. <a>7`^
  1462. `!bb!R
  1463. Title:
  1464. Subject
  1465.     0S0E
  1466. SubjectRequired: description of this document 
  1467.     Created by:    
  1468. FromDocument author name
  1469.      on 
  1470. DateThe date/time when the document was composed
  1471.      at 
  1472. TimeCreated
  1473.     Category
  1474. Miscellaneous
  1475. Categories
  1476. You must enter a category for your document
  1477.     3S4S6S11SCategoriesPress ENTER for list of keywords or to add a new keyword
  1478. ($All)
  1479.     4S6S
  1480. Status
  1481. StatusListv
  1482.     4S6S7S8S9S
  1483.     Reviewers:    
  1484. Reviewers
  1485. Reviewers
  1486. Reviewers
  1487. Status
  1488. StatusListv
  1489. PreviousReviewers
  1490.     4S6S7S8S9S10S11S12S13S
  1491.     Previous reviewers:
  1492. PreviousReviewers
  1493. PreviousReviewers
  1494. Status
  1495. StatusListv
  1496.     4S6S7S8S9S
  1497.     Current reviewer:    
  1498. CurrentReviewers
  1499. CurrentReviewers
  1500. Status
  1501. StatusListv
  1502. FutureReviewers
  1503.     4S6S7S8S9S10S11S12S13S
  1504.     Future reviewers:
  1505. FutureReviewers
  1506. FutureReviewers
  1507. Status
  1508. StatusListv
  1509. Status
  1510. StatusListv
  1511.     4S6S7S8S9S13S15S16S17S18S
  1512.     Review type:
  1513. ReviewStyle
  1514. ReviewStyle
  1515. Serial review | Serial.NoVersionsSerial (keep all revisions) | Serial.VersionsDocument reservations | Parallel.NoVersionsResponse review | Parallel.Versions
  1516.     Deadline:
  1517. ReviewWindow
  1518. ReviewWindow
  1519. No time limit for each review | NoLimitMove to next reviewer after: | MoveOnKeep sending reminders after: | Reminder
  1520. ReviewTime
  1521. ReviewTime
  1522. ReviewWindow
  1523. NoLimit
  1524. day(s)
  1525.     3S4S6S8S
  1526. tmpReviewUnits
  1527.     Notification:
  1528. NotifyAfter
  1529. NotifyAfter
  1530. Notify originator after each reviewer | EachNotify originator after final reviewer | Final
  1531.     ....................
  1532. ReviewerLog
  1533.     1S2S3S4S
  1534. Reviewer Log
  1535. ReviewerLog
  1536.     1S2S
  1537. ReviewerLog
  1538. ReviewerLog
  1539. OLEBody
  1540. BodyEnter the text (or a description) of the document.
  1541. _Edit Document
  1542. DocumentAuthors
  1543.     9S15S
  1544. Categori_zeK
  1545. _Forward
  1546. _Move to Folder...
  1547. _Remove from FolderK
  1548. Send Docu_ment
  1549. O=Lotus Notes
  1550. O=Lotus Notes
  1551. PURSAFO
  1552. |.:#U
  1553. O=Lotus Notes
  1554. CN=Lotus Notes Template Development/O=Lotus Notes
  1555. PURSAFO
  1556. Fde!f^^
  1557. $$Reviewers
  1558. $Reviewers_O
  1559. Date_1
  1560. TimeCreated_1
  1561. $TITLE
  1562. $AUTOLAUNCH
  1563. $Info
  1564. $SubForms
  1565. $WindowTitle
  1566. $Script
  1567. $$Script_O
  1568. $$ScriptName
  1569. _ViewIcon
  1570. TimeCreated
  1571. ReviewTime
  1572. $Body
  1573. $ACTIONS
  1574. '++LotusScript Development Environment:2:5:(Options):0:66
  1575. '++LotusScript Development Environment:2:5:(Forward):0:1
  1576. Declare Sub Exiting(Source As Field)
  1577. '++LotusScript Development Environment:2:5:(Declarations):0:2
  1578. '++LotusScript Development Environment:2:2:BindEvents:1:129
  1579. Private Sub BindEvents(Byval Objectname_ As String)
  1580.      Static Source As FIELD
  1581.      Set Source = Bind(Objectname_)
  1582.      On Event Exiting From Source Call Exiting
  1583. End Sub
  1584. '++LotusScript Development Environment:2:2:Exiting:1:12
  1585. Sub Exiting(Source As Field)
  1586.      formdoc.refresh
  1587. End Sub
  1588. New Word Document
  1589. Subject
  1590.     4S6S
  1591. '++LotusScript Development Environment:2:5:(Options):0:74
  1592. Option Public
  1593. '++LotusScript Development Environment:2:5:(Forward):0:1
  1594. '++LotusScript Development Environment:2:5:(Declarations):0:2
  1595.  WordDoc Document'++LotusScript Development Environment:2:5:(Options):0:66
  1596. '++LotusScript Development Environment:2:5:(Forward):0:1
  1597. Declare Sub Postopen(Source As Notesuidocument)
  1598. '++LotusScript Development Environment:2:5:(Declarations):0:2
  1599. '++LotusScript Development Environment:2:2:BindEvents:1:129
  1600. Private Sub BindEvents(Byval Objectname_ As String)
  1601.      Static Source As NOTESUIDOCUMENT
  1602.      Set Source = Bind(Objectname_)
  1603.      On Event Postopen From Source Call Postopen
  1604. End Sub
  1605. '++LotusScript Development Environment:2:2:Postopen:1:12
  1606. Sub Postopen(Source As Notesuidocument)
  1607.      
  1608. End Sub
  1609. DocumentWorkflow
  1610.     DocumentWorkflow Subform
  1611.     :  This Subform includes the LotusScript, Actions, and hidden fields which are used in all versions of the Document form.
  1612.     Hidden Fields:-------------------------------------------------------------------
  1613. DocumentAuthors
  1614.     4S6S
  1615. DocumentAuthors
  1616. Scope
  1617. Private
  1618. Reviewers
  1619.     3S4S6S7S8S10SDocumentReaders
  1620. LastEditor
  1621. DocumentAuthors
  1622.     0S0E
  1623. tmpUseOLE
  1624. $OLEObjField
  1625. OLEBody
  1626. $OLEObjRichTextField
  1627. _ViewIcon
  1628. Word.Document
  1629. $OLEObjProgID
  1630. Scope
  1631. Public
  1632.     1S2S
  1633. Scope
  1634. Public
  1635. tmpUseOle
  1636.     1S2S3S2E4S5S2E6S
  1637. (DocProperties) | DocProperties
  1638. <a>7`^
  1639. `!bb!R
  1640. Title:
  1641. Subject
  1642.     0S0E
  1643. SubjectRequired: description of this document 
  1644.     Created by:    
  1645. FromDocument author name
  1646.      on 
  1647. DateThe date/time when the document was composed
  1648.      at 
  1649. TimeCreated
  1650.     Category
  1651. Miscellaneous
  1652. Categories
  1653. You must enter a category for your document
  1654.     3S4S6S11SCategoriesPress ENTER for list of keywords or to add a new keyword
  1655. ($All)
  1656.     4S6S
  1657. Status
  1658. StatusListv
  1659.     4S6S7S8S9S
  1660.     Reviewers:    
  1661. Reviewers
  1662. Reviewers
  1663. Reviewers
  1664. Status
  1665. StatusListv
  1666. PreviousReviewers
  1667.     4S6S7S8S9S10S11S12S13S
  1668.     Previous reviewers:
  1669. PreviousReviewers
  1670. PreviousReviewers
  1671. Status
  1672. StatusListv
  1673.     4S6S7S8S9S
  1674.     Current reviewer:    
  1675. CurrentReviewers
  1676. CurrentReviewers
  1677. Status
  1678. StatusListv
  1679. FutureReviewers
  1680.     4S6S7S8S9S10S11S12S13S
  1681.     Future reviewers:
  1682. FutureReviewers
  1683. FutureReviewers
  1684. Status
  1685. StatusListv
  1686. Status
  1687. StatusListv
  1688.     4S6S7S8S9S13S15S16S17S18S
  1689.     Review type:
  1690. ReviewStyle
  1691. ReviewStyle
  1692. Serial review | Serial.NoVersionsSerial (keep all revisions) | Serial.VersionsDocument reservations | Parallel.NoVersionsResponse review | Parallel.Versions
  1693.     Deadline:
  1694. ReviewWindow
  1695. ReviewWindow
  1696. No time limit for each review | NoLimitMove to next reviewer after: | MoveOnKeep sending reminders after: | Reminder
  1697. ReviewTime
  1698. ReviewTime
  1699. ReviewWindow
  1700. NoLimit
  1701. day(s)
  1702.     3S4S6S8S
  1703. tmpReviewUnits
  1704.     Notification:
  1705. NotifyAfter
  1706. NotifyAfter
  1707. Notify originator after each reviewer | EachNotify originator after final reviewer | Final
  1708.     ....................
  1709. ReviewerLog
  1710.     1S2S3S4S
  1711. Reviewer Log
  1712. ReviewerLog
  1713.     1S2S
  1714. ReviewerLog
  1715. ReviewerLog
  1716. ReviewerLog
  1717. tmpUseOle
  1718.     1S2S3S2E4S5S2E6S
  1719. OLEBody
  1720. BodyEnter the text (or a description) of the document.
  1721. _Edit Document
  1722. DocumentAuthors
  1723.     9S15S
  1724. Categori_zeK
  1725. _Forward
  1726. _Move to Folder...
  1727. _Remove from FolderK
  1728. Send Docu_ment
  1729. O=Lotus Notes
  1730. O=Lotus Notes
  1731. PURSAFO
  1732. |.:#U
  1733. O=Lotus Notes
  1734. CN=Lotus Notes Template Development/O=Lotus Notes
  1735. PURSAFO
  1736. Fde!f^^
  1737. @=n&>
  1738. 9.hd{*
  1739. $$Reviewers
  1740. $Reviewers_O
  1741. $TITLE
  1742. $Info
  1743. $SubForms
  1744. $WindowTitle
  1745. $Script
  1746. $$Script_O
  1747. $$ScriptName
  1748. $$FormScript
  1749. $$$FormScript_O
  1750. _ViewIcon
  1751. TimeCreated
  1752. ReviewTime
  1753. $Body
  1754. $ACTIONS
  1755. Process Late Reviews
  1756. Selects those documents which are in review and have due dates which have passed.  Based upon the review style of the document, it then either moves it along to the next reviewer, marks it as complete, or simply notifies the current reviewer(s) that their review is overdue.1
  1757. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesSfL3
  1758. #########################
  1759. Periodic Archive
  1760. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesStdR4DocLib
  1761. ##########################
  1762. 255D2116B7BDFECF1769F57E5917AA29Lotus Notes
  1763. Archive ProfileArchiveProfileArchive ProfileCDStdR4DocLib
  1764. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes######################
  1765. 255D2116B7BDFECF1769F57E5917AA29Lotus Notes
  1766. (Archive Log)Archive LogArchiveLog
  1767. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCDStdR4DocLib#################################
  1768. _Archiving|Archiving
  1769. Archive Logs
  1770. Archive Profile
  1771.     6S9S11S
  1772. $75$74Subject$Conflict
  1773. Archive
  1774.     L1S5S1(
  1775. $75$74Subject
  1776. Archive Logs
  1777. Archive Profile
  1778.     6S9S11S$74
  1779. SubjectDescription&
  1780. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisStdR4DocLib######################################################
  1781. MS Office\PowerPoint PresentationPowerPoint Document
  1782. DocumentWorkflow(DocProperties) | DocProperties
  1783. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes#########
  1784. (ArchiveProfileDlg)CD
  1785. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisStdR4DocLib#############################
  1786. '++LotusScript Development Environment:2:5:(Options):0:66
  1787. Option Public
  1788. '++LotusScript Development Environment:2:5:(Forward):0:1
  1789. Declare Sub Initialize
  1790. Declare Sub SendReminder(EmailType)
  1791. Declare Sub MoveToNextReviewer
  1792. '++LotusScript Development Environment:2:5:(Declarations):0:10
  1793. Dim s As NotesSession
  1794. Dim db As NotesDatabase
  1795. Dim view As NotesView
  1796. Dim documents As NotesDocumentCollection
  1797. Dim note As NotesDocument
  1798. Dim parent As NotesDocument
  1799. Dim emaildoc As NotesDocument
  1800. Dim dt As NotesDateTime
  1801. Dim item As NotesItem
  1802. Dim rtitem As NotesRichTextItem
  1803. Dim CurrentReviewers As Variant
  1804. Dim FutureReviewers As Variant
  1805. Dim ReviewSeq As Variant
  1806. Dim ReviewWindow As Variant
  1807. Dim NewList() As Variant
  1808. Dim ListMax As Integer
  1809. Dim NextReviewer As Variant
  1810. Dim OldDueDate As Variant
  1811. '++LotusScript Development Environment:2:2:Initialize:1:10
  1812. Sub Initialize
  1813.      
  1814.      Set s = New NotesSession    
  1815.      Set db = s.CurrentDatabase
  1816.      Set dt = New NotesDateTime("")
  1817.      dt.SetNow
  1818.      Set documents = db.Search("@Today => @Date(DueDateTime) & Status = ""In Review""", Nothing, 0)
  1819.      If documents.Count = 0 Then Exit Sub
  1820.      
  1821.      For d = 1 To documents.Count
  1822.           Set note = documents.GetNthDocument(d)
  1823.           ReviewWindow = note.ReviewWindow      
  1824.           Select Case ReviewWindow(0)
  1825.           Case "MoveOn"
  1826.                MoveToNextReviewer
  1827.                SendReminder("WindowExpired")
  1828.                If ReviewSeq = "Serial" Then
  1829.                     If FutureReviewers(0) <> "None" Then SendReminder("NotifyNextReviewer")
  1830.                End If
  1831.           Case "Reminder"
  1832.                CurrentReviewers = note.CurrentReviewers
  1833.                SendReminder("Reminder")
  1834.           End Select
  1835.           If note.IsResponse Then
  1836.                note.RemoveItem("DueDateTime")
  1837.                note.Save True, True
  1838.           End If
  1839.      Next
  1840.      
  1841. End Sub
  1842. '++LotusScript Development Environment:2:2:SendReminder:1:8
  1843. Sub SendReminder(EmailType)
  1844.      
  1845.      If note.IsResponse Then Exit Sub
  1846.      
  1847.      Set maildoc = New NotesDocument(db)
  1848.      Set rtitem = New NotesRichTextItem(maildoc, "Body")
  1849.      maildoc.InheritedSubject = note.Subject
  1850.      maildoc.InheritedDbTitle = db.Title
  1851.      
  1852.      Select Case EmailType
  1853.      Case "Reminder"
  1854.           maildoc.SendTo = CurrentReviewers
  1855.           maildoc.Subject = "Overdue Document Review"
  1856.           maildoc.FlowStatus = "Please complete your review of this document.  You will continue to receive these notifications until it is complete."
  1857.           Call rtitem.AppendDocLink(note, "DocLink to Overdue Document")
  1858.           maildoc.DueDateTime = OldDueDate
  1859.      Case "WindowExpired"
  1860.           maildoc.SendTo = CurrentReviewers
  1861.           maildoc.Subject = "Document Review Period has Expired"
  1862.           maildoc.FlowStatus = "The time limit for your review of this document has expired."
  1863.           Call rtitem.AppendDocLink(note, "DocLink to Overdue Document")
  1864.           maildoc.DueDateTime = OldDueDate
  1865.      Case "NotifyNextReviewer"
  1866.           maildoc.SendTo = note.CurrentReviewers
  1867.           maildoc.Subject = "Document Requires Review"
  1868.           maildoc.FlowStatus = "Please take the time to review this document before the date shown below."
  1869.           Call rtitem.AppendDocLink(note, "DocLink to Document requiring review")
  1870.           maildoc.DueDateTime = note.DueDateTime
  1871.      End Select
  1872.      
  1873.      maildoc.Form = "Bookmark"
  1874.      On Error Resume Next
  1875.      Call maildoc.Send (False)
  1876.      
  1877. End Sub
  1878. '++LotusScript Development Environment:2:2:MoveToNextReviewer:1:8
  1879. Sub MoveToNextReviewer
  1880.      
  1881.      ListMax = 0
  1882.      Set dt = New NotesDateTime("")
  1883.      dt.SetNow
  1884.      ReviewStyle = note.ReviewStyle
  1885.      position = Instr(ReviewStyle(0), ".")
  1886.      ReviewSeq = Left(ReviewStyle(0), position - 1)
  1887.      Versioning = Mid(ReviewStyle(0), position + 1)
  1888.      OldDueDate = Datevalue(note.DueDateTime(0))
  1889.      dt.LSLocalTime = OldDueDate
  1890.      ReviewerLogEntry = "Review period ended on " & Format(dt.LSLocalTime, "Short Date") & " without a completed review by "
  1891.      dt.SetNow
  1892.      
  1893.      Select Case ReviewSeq
  1894.      Case "Parallel"
  1895. 'For Response Reviews, we maintain the status in the parent so remove these
  1896.           If note.IsResponse Then 
  1897.                note.RemoveItem("PreviousReviewers")
  1898.                note.RemoveItem("CurrentReviewers")
  1899.                note.RemoveItem("FutureReviewers")
  1900.           Else
  1901. 'If it is a parent, move CurrentReviewers to PreviousReviewers and set CurrentReviewers to "None"               
  1902.                CurrentReviewers = note.CurrentReviewers
  1903.                LateReviewers = Evaluate("@Implode(CurrentReviewers; "", "")", note)
  1904.                Set item = note.GetFirstItem("ReviewerLog")
  1905.                item.AppendToTextList(ReviewerLogEntry & LateReviewers(0))
  1906.                PreviousReviewers = note.PreviousReviewers
  1907.                If PreviousReviewers(0) = "None" Then
  1908.                     note.PreviousReviewers = CurrentReviewers
  1909.                Else
  1910.                     Set item = note.GetFirstItem("PreviousReviewers")
  1911.                     item.AppendToTextList(CurrentReviewers)
  1912.                End If
  1913.                note.CurrentReviewers = "None"    
  1914.           End If
  1915.           note.InProcess = "None"
  1916.           note.Status = "Review Complete"
  1917.           note.RemoveItem("DueDateTime")
  1918.           note.DocumentAuthors = note.From
  1919.      Case "Serial"
  1920.           CurrentReviewers = note.CurrentReviewers         
  1921.           Set item = note.GetFirstItem("ReviewerLog")
  1922.           item.AppendToTextList(ReviewerLogEntry & CurrentReviewers(0))
  1923.           PreviousReviewers = note.PreviousReviewers
  1924.           If PreviousReviewers(0) = "None" Then
  1925.                note.PreviousReviewers = CurrentReviewers(0)
  1926.           Else              
  1927.                Set item = note.GetFirstItem("PreviousReviewers")
  1928.                item.AppendToTextList(CurrentReviewers(0))
  1929.           End If
  1930.           FutureReviewers = note.FutureReviewers
  1931. 'Put the first person in the future reviewers list in current reviewer and remove that person from future reviewers list
  1932.           note.CurrentReviewers = FutureReviewers(0)
  1933.           If Ubound(FutureReviewers) = 0 Then
  1934.                note.FutureReviewers = "None"
  1935.           Else
  1936.                ListMax = Ubound(FutureReviewers) - 1
  1937.                Redim NewList (ListMax)
  1938.                x = 0 
  1939.                For y = 1 To ListMax
  1940.                     NewList(x) = FutureReviewers(y)
  1941.                     x = x + 1
  1942.                Next
  1943.                note.FutureReviewers = NewList
  1944.           End If
  1945. 'Calculate when the review is due, based upon ReviewTime     
  1946.           If FutureReviewers(0) = "None" Then
  1947.                note.RemoveItem("DueDateTime")
  1948.                note.Status = "Review Complete"
  1949.                note.DocumentAuthors = note.From
  1950.           Else
  1951.                ReviewTime = note.ReviewTime
  1952.                dt.SetNow
  1953.                If Isnumeric(ReviewTime(0)) Then
  1954.                     dt.AdjustDay(ReviewTime(0))
  1955.                     note.DueDateTime = dt.LSLocalTime
  1956.                Else
  1957.                     note.RemoveItem("DueDateTime")
  1958.                End If
  1959.                Redim NewList(1)
  1960.                Originator = note.From
  1961.                NextReviewer = note.CurrentReviewers
  1962.                NewList(0) = Originator(0)
  1963.                NewList(1) = NextReviewer(0)
  1964.                note.DocumentAuthors = NewList
  1965.           End If
  1966.      End Select
  1967.      
  1968.      note.Save True, True
  1969.      
  1970. End Sub
  1971. CurrentReviewers
  1972. O=Lotus Notes
  1973. O=Lotus Notes
  1974. PURSAFO
  1975. |.:#U
  1976. O=Lotus Notes
  1977. CN=Lotus Notes Template Development/O=Lotus Notes
  1978. PURSAFO
  1979. Fde!f^^
  1980. $TITLE
  1981. $AssistType
  1982. $AssistLastRun
  1983. $AssistDocCount
  1984. $Comment
  1985. $AssistFlags
  1986. $AssistTrigger
  1987. $AssistInfo
  1988. $AssistQuery
  1989. $AssistAction
  1990. $AssistAction_Ex
  1991. GOLAx
  1992. Started running agent 'Mark/Unmark Document As Expired' on 07/20/96 02:03:32 PM
  1993. Running on selected documents: 1 total
  1994. Found 1 document(s) that match search criteria
  1995. 1 document(s) were modified by formula
  1996. Done running agent 'Mark/Unmark Document As Expired' on 07/20/96 02:03:39 PM
  1997. '++LotusScript Development Environment:2:5:(Options):0:66
  1998. Option Public
  1999. '++LotusScript Development Environment:2:5:(Forward):0:1
  2000. Declare Sub Initialize
  2001. Declare Sub ProcessDocument
  2002. '++LotusScript Development Environment:2:5:(Declarations):0:10
  2003. Dim session As NotesSession
  2004. Dim db As NotesDatabase
  2005. Dim documents As NotesDocumentCollection
  2006. Dim note As NotesDocument
  2007. '++LotusScript Development Environment:2:2:Initialize:1:10
  2008. Sub Initialize
  2009.      Set session = New NotesSession
  2010.      Set db = session.CurrentDatabase
  2011.      Set documents = db.UnprocessedDocuments
  2012.      
  2013.      Set note = documents.GetFirstDocument
  2014.      While Not (note Is Nothing)
  2015.           ProcessDocument
  2016.           Set note = documents.GetNextDocument(note)
  2017.      Wend
  2018. End Sub
  2019. '++LotusScript Development Environment:2:2:ProcessDocument:1:8
  2020. Sub ProcessDocument
  2021.      Dim ExpireError As String
  2022.      Dim dtNow As New NotesDateTime("")
  2023.      
  2024.      ExpireError = "This " & note.Form(0) & " cannot be marked as expired."
  2025.      
  2026. 'is this document is protected from archiving, ignore it
  2027.      If note.HasItem("ProtectFromArchive") Then Exit Sub
  2028.      
  2029. 'if this note does not have an ExpireDate value, set it to today
  2030.      If note.ExpireDate(0) = "" Then
  2031.           dtNow.SetNow
  2032.           note.ExpireDate = dtNow.LSLocalTime
  2033.           note.Save True,True
  2034.      Else
  2035.           Select Case Msgbox ("This document was marked expired on " & Cstr(note.ExpireDate(0)) & ".  Would you like to unmark it?",36,"Expire Date")
  2036.           Case 6
  2037.                note.RemoveItem "ExpireDate"
  2038.                note.Save True,True
  2039.           End Select
  2040.      End If
  2041. End Sub
  2042. O=Lotus Notes
  2043. O=Lotus Notes
  2044. PURSAFO
  2045. |.:#U
  2046. O=Lotus Notes
  2047. CN=Lotus Notes Template Development/O=Lotus Notes
  2048. PURSAFO
  2049. Fde!f^^
  2050. ]XU.7
  2051. $TITLE
  2052. $AssistType
  2053. $AssistLastRun
  2054. $AssistDocCount
  2055. $AssistFlags
  2056. $AssistTrigger
  2057. $AssistInfo
  2058. $AssistQuery
  2059. $AssistAction
  2060. $AssistAction_Ex
  2061. '++LotusScript Development Environment:2:5:(Options):0:66
  2062. '++LotusScript Development Environment:2:5:(Forward):0:1
  2063. Declare Sub Initialize
  2064. Declare Sub Terminate
  2065. Declare Sub Main
  2066. Declare Sub GetProfileSettings
  2067. Declare Sub CreateLogDocument
  2068. Declare Sub ProcessDocuments
  2069. Declare Sub EvaluateDocument
  2070. Declare Sub ArchiveDocument
  2071. Declare Sub FixReaderNames
  2072. Declare Sub AddDocumentToLog
  2073. Declare Sub CloseLogDocument
  2074. Declare Sub MarkLogDocuments
  2075. '++LotusScript Development Environment:2:5:(Declarations):0:10
  2076. '%INCLUDE "lserr.lss"
  2077. '%INCLUDE "lsxbeerr.lss"
  2078. Const MAXARCHIVEITEMS = 50
  2079. Dim session As NotesSession
  2080. Dim dbSource As NotesDatabase
  2081. Dim dbArchive As NotesDatabase
  2082. Dim docSource As NotesDocument
  2083. Dim docArchive As NotesDocument
  2084. Dim docLog As NotesDocument
  2085. Dim docProfile As NotesDocument
  2086. Dim viewArchive As NotesView
  2087. Dim dtNow As NotesDateTime
  2088. Dim dtExpired As NotesDateTime
  2089. Dim dtDocument As NotesDateTime
  2090. Dim dtCompare As NotesDateTime
  2091. Dim docsCollection As NotesDocumentCollection
  2092. Dim rtitem As NotesRichTextItem
  2093. Dim item As NotesItem
  2094. Dim nidArray() As String
  2095. Dim SourcePath As String
  2096. Dim SourceServer As String
  2097. Dim ArchiveServer As String
  2098. Dim ArchivePath As String
  2099. Dim ArchiveLog As String
  2100. Dim IncludeDocLinks As String
  2101. Dim ArchiveExpired As String
  2102. Dim ArchiveInactive As String
  2103. Dim ExpiredLife As Integer
  2104. Dim DocumentLife As Integer
  2105. Dim nLogItems As Integer
  2106. Dim numDocs As Integer
  2107. Dim numDocsArchived As Integer
  2108. Dim i As Integer
  2109. Dim DoNotRun As Variant
  2110. Dim DocCanBeArchived As Variant
  2111. '++LotusScript Development Environment:2:2:Initialize:1:10
  2112. Sub Initialize
  2113.      'initialize some variables
  2114.      Set session = New NotesSession
  2115.      Set dbSource = session.CurrentDatabase
  2116.      Redim nidArray(5)
  2117.      nLogItems = 0
  2118.      numDocsArchived = 0
  2119.      'call the main entry point
  2120.      Main     
  2121. End Sub
  2122. '++LotusScript Development Environment:2:2:Terminate:1:10
  2123. Sub Terminate
  2124.      
  2125. End Sub
  2126. '++LotusScript Development Environment:2:2:Main:1:8
  2127. Sub Main
  2128. 'Read the profile document to see what options are enabled and where databases are located
  2129.      GetProfileSettings
  2130.      If DoNotRun Then Exit Sub
  2131.      
  2132. 'setup the date/time structures
  2133.      Set dtNow = New NotesDateTime("")
  2134.      Set dtExpired = New NotesDateTime("")
  2135.      Set dtDocument = New NotesDateTime("")
  2136.      Set dtCompare = New NotesDateTime("")
  2137.      dtNow.SetNow
  2138.      dtExpired.SetNow
  2139.      dtDocument.SetNow
  2140.      dtCompare.SetNow
  2141.      If ArchiveExpired = "Yes" Then dtExpired.AdjustDay(ExpiredLife * -1)
  2142.      If ArchiveInactive = "Yes" Then dtDocument.AdjustDay(DocumentLife * -1)     
  2143.      
  2144. 'open the archive database
  2145.      Set dbArchive = New NotesDatabase(ArchiveServer,ArchivePath)
  2146.      If Not (dbArchive.IsOpen) Then
  2147.           Messagebox "Unable to open archive database.",16,"Error"
  2148.           Exit Sub
  2149.      End If
  2150.      
  2151.      'see if we are logging documents, if we are, then create the first one
  2152.      If ArchiveLog = "Yes" Then CreateLogDocument
  2153.      'process the documents in the database
  2154.      'this finds all documents that needs to be archived, archives them, logs them (if necessary), and removes them from this database
  2155.      ProcessDocuments
  2156.      'mark the log documents in terms of x out of y
  2157.      If ArchiveLog = "Yes" Then MarkLogDocuments
  2158. End Sub
  2159. '++LotusScript Development Environment:2:2:GetProfileSettings:1:8
  2160. Sub GetProfileSettings
  2161.      'reads the profile document
  2162.      Set view = dbSource.GetView("Archiving")
  2163.      key = "Archive Profile"
  2164.      Set docProfile = view.GetDocumentByKey(key,False)
  2165.      If docProfile Is Nothing Then
  2166.           'there is no profile document so exit
  2167.           DoNotRun = True
  2168.      Elseif docProfile.ArchivePath(0) = "" Then
  2169.           'there is no archive database
  2170.           Msgbox "You need to specify a location for the archive database.",16,"Error"          
  2171.           DoNotRun = True
  2172.      Else
  2173.           DoNotRun = False
  2174.           ArchiveExpired = docProfile.ArchiveExpired(0)
  2175.           ArchiveInactive = docProfile.ArchiveInactive(0)
  2176.           DocumentLife = docProfile.DocumentLife(0)
  2177.           ExpiredLife = docProfile.ExpiredLife(0)
  2178.           ArchiveServer = docProfile.ArchiveServer(0)
  2179.           ArchivePath = docProfile.ArchivePath(0)
  2180.           ArchiveLog = docProfile.ArchiveLog(0)
  2181.           IncludeDocLinks = docProfile.IncludeDocLinks(0)
  2182.      End If
  2183. End Sub
  2184. '++LotusScript Development Environment:2:2:CreateLogDocument:1:8
  2185. Sub CreateLogDocument
  2186.      'creates a new log document, incrementing the counter
  2187.      Set docLog = New NotesDocument(dbSource)
  2188.      Set rtitem = New NotesRichTextItem(docLog, "Body")
  2189.      docLog.Form = "Archive Log"
  2190.      dtNow.SetNow
  2191.      docLog.ArchiveDate = dtNow.LSLocalTime
  2192.      docLog.ProtectFromArchive = 1
  2193.      docLog.ExcludeFromView = "D"
  2194.      docLog.From = "Archiving"
  2195.      docLog.Categories = "(Archive)"
  2196.      docLog.ReplaceItemValue "_ViewIcon", 22
  2197.      nLogItems = nLogItems + 1
  2198.      'see if we need to redim the array
  2199.      If nLogItems Mod 6 = 0 Then Redim Preserve nidArray(nLogItems + 4)     
  2200. End Sub
  2201. '++LotusScript Development Environment:2:2:ProcessDocuments:1:8
  2202. Sub ProcessDocuments
  2203.      'get a handle to all of the documents in the database
  2204.      Set docsCollection = dbSource.AllDocuments
  2205.      numDocs = docsCollection.Count
  2206.      For i =1 To numDocs
  2207.           Set docSource = docsCollection.GetNthDocument(i)
  2208.           'see if this document can be archived
  2209.           EvaluateDocument
  2210.           If DocCanBeArchived Then
  2211.                'archive this document
  2212.                ArchiveDocument
  2213.                If ArchiveLog = "Yes" Then AddDocumentToLog
  2214.                docSource.Remove True
  2215.           End If
  2216.           'see if we have hit the maximum number of entries in a log document; if so close the existing one and create a new one
  2217.           If (numDocsArchived Mod MAXARCHIVEITEMS = 0) And (numDocsArchived > 0) Then 
  2218.                If ArchiveLog = "Yes" Then
  2219.                     CloseLogDocument
  2220.                     CreateLogDocument                  
  2221.                End If
  2222.           End If               
  2223.      Next
  2224.      'we are done processing all of the documents, close the last log document (if necessary)
  2225.      If ArchiveLog = "Yes" Then CloseLogDocument
  2226. End Sub
  2227. '++LotusScript Development Environment:2:2:EvaluateDocument:1:8
  2228. Sub EvaluateDocument
  2229.      'checks to see if a document should be archived or not
  2230.      DocCanBeArchived = False
  2231.      'see if this document is protected from archiving
  2232.      If docSource.HasItem("ProtectFromArchive") Then
  2233.           If docSource.ProtectFromArchive(0) = 1 Then Exit Sub        
  2234.      End If
  2235.      
  2236. 'look for a $NoPurge item; if it is a date, compare it to today;
  2237.      If (docSource.HasItem("$NoPurge")) Then
  2238.           Set Purge = docSource.GetFirstItem("$NoPurge")
  2239.           If (Purge.Type = DATETIMES) Then
  2240.                Set enddt = New NotesDateTime("")
  2241.                Set enddt = Purge.DateTimeValue
  2242.                Set nowdt = New NotesDateTime("")
  2243.                nowdt.SetNow
  2244.                If enddt.TimeDifference(nowdt) >= 0 Then Exit Sub
  2245.           Else
  2246.                Exit Sub
  2247.           End If
  2248.      End If
  2249.      
  2250.      'see if we should archive documents that expire
  2251.      If ArchiveExpired = "Yes" Then
  2252.           If docSource.HasItem("ExpireDate") Then
  2253.                Set item = docSource.GetFirstItem("ExpireDate")
  2254.                Set dtCompare = item.DateTimeValue
  2255.                If dtCompare Is Nothing Then
  2256.                     Set dtCompare = New NotesDateTime("")
  2257.                     dtCompare.SetNow
  2258.                Else
  2259.                     If dtExpired.TimeDifference(dtCompare) >= 0 Then
  2260.                          DocCanBeArchived = True
  2261.                          Exit Sub ' we exit here so that we don't archive this document again
  2262.                     End If
  2263.                End If                    
  2264.           End If
  2265.      End If
  2266.      'see if we should archive documents that are inactive
  2267.      If ArchiveInactive = "Yes" Then
  2268.           dtCompare.LSLocalTime = docSource.LastAccessed
  2269.           If dtDocument.TimeDifference(dtCompare) >= 0 Then DocCanBeArchived = True
  2270.      End If
  2271. End Sub
  2272. '++LotusScript Development Environment:2:2:ArchiveDocument:1:8
  2273. Sub ArchiveDocument
  2274.      'copies the source document into the archive database
  2275. $Archived and DateArchived might already be present, if this agent failed the last
  2276. time it was run.  None of these fields should be on the archived copy, because we 
  2277. don't want the archive database to inadvertantly archive these documents (it can
  2278. archive, but it needs to use its own criteria)
  2279. %END REM
  2280.      
  2281.      If docSource.HasItem("$Archived") Then docSource.RemoveItem("$Archived")
  2282.      If docSource.HasItem("DateArchived") Then docSource.RemoveItem("DateArchived")
  2283.      If docSource.HasItem("ExpireDate") Then docSource.RemoveItem("ExpireDate")
  2284.      FixReaderNames
  2285.      docSource.Save True, True
  2286.      Set docArchive = docSource.CopyToDatabase(dbArchive)
  2287.      docSource.DateArchived = dtNow.LSLocalTime    
  2288.      Call docSource.AppendItemValue("$Archived", True)
  2289.      docSource.Save True, True
  2290.      numDocsArchived = numDocsArchived + 1
  2291. End Sub
  2292. '++LotusScript Development Environment:2:2:FixReaderNames:1:8
  2293. Sub FixReaderNames
  2294.      'if the reader access fields are blank, remove them
  2295.      If docSource.HasItem("Readers") Then
  2296.           If docSource.Readers(0) = "" Then docSource.RemoveItem("Readers")
  2297.      End If
  2298.      If docSource.HasItem("DocumentReaders") Then
  2299.           If docSource.DocumentReaders(0) = "" Then docSource.RemoveItem("DocumentReaders")
  2300.      End If
  2301.      
  2302. End Sub
  2303. '++LotusScript Development Environment:2:2:AddDocumentToLog:1:8
  2304. Sub AddDocumentToLog
  2305.      'only called if a document was archived and logging was enabled
  2306.      If IncludeDocLinks = "Yes" Then
  2307.           'the user wants a doclink to the new archived document
  2308.           Call rtitem.AppendDocLink(docArchive, "DocLink to " & docSource.Subject(0))
  2309.           Call rtitem.AddTab(1)
  2310.      End If
  2311.      Call rtitem.AppendText("     " & docSource.Subject(0) & " (created by " & docSource.From(0) &   " on " &_
  2312.      Format(docSource.Created, "Short Date") & ")")
  2313.      Call rtitem.AddNewLine(2)
  2314. End Sub
  2315. '++LotusScript Development Environment:2:2:CloseLogDocument:1:8
  2316. Sub CloseLogDocument
  2317.      'saves the log document, adds the note id to the array,
  2318.      docLog.Save True, True
  2319.      nidArray(nLogItems) = docLog.NoteID
  2320. End Sub
  2321. '++LotusScript Development Environment:2:2:MarkLogDocuments:1:8
  2322. Sub MarkLogDocuments
  2323.      'finds all of the log documents just created and marks them in terms of x out of y
  2324.      For i = 1 To nLogItems
  2325.           Set docLog = dbSource.GetDocumentByID(nidArray(i))
  2326.           If Not (docLog Is Nothing) Then
  2327.                docLog.Subject = "Log Document " &Cstr(i) & " of " & Cstr(nLogItems) & " (" & Format(docLog.Created, "General Date") & ")"
  2328.                docLog.LogCount = Cstr(i)
  2329.                docLog.LogTotal = Cstr(nLogItems)
  2330.                docLog.ArchiveTrailer = "Archive log " & Cstr(i) & "of " & Cstr(nLogItems) & " for documents on server " & _
  2331.                ArchiveServer & " from " & dbSource.Title & " (" & dbSource.FilePath & ") to " & dbArchive.Title & _
  2332.                " (" & ArchivePath & ") completed sucessfully on " & _
  2333.                Format(dtNow.LSLocalTime, "Short Date") & " at " & _
  2334.                Format(dtNow.LSLocalTime, "Long Time") & _
  2335.                ".  Expired documents are archived after " & ExpiredLife & _
  2336.                " days.  All other documents are archived after " & DocumentLife & " days of inactivity."
  2337.                docLog.Save True,True
  2338.                Call docLog.CopyToDatabase(dbArchive)
  2339.           End If
  2340.      Next
  2341. End Sub
  2342. O=Lotus Notes
  2343. O=Lotus Notes
  2344. PURSAFO
  2345. |.:#U
  2346. O=Lotus Notes
  2347. CN=Lotus Notes Template Development/O=Lotus Notes
  2348. PURSAFO
  2349. Fde!f^^
  2350. $TITLE
  2351. $AssistType
  2352. $AssistLastRun
  2353. $AssistDocCount
  2354. $AssistFlags
  2355. $AssistTrigger
  2356. $AssistInfo
  2357. $AssistQuery
  2358. $AssistAction
  2359. $AssistAction_Ex
  2360. Archive Profile
  2361. Times New Roman
  2362. '++LotusScript Development Environment:2:5:(Options):0:66
  2363. Option Public
  2364. '++LotusScript Development Environment:2:5:(Forward):0:1
  2365. Declare Sub Initialize
  2366. Declare Sub ProcessExistingArchiveDB
  2367. Declare Sub ProcessNonExistingArchiveDB 
  2368. Declare Sub ProcessArchiveDbExists
  2369. Declare Sub CreateNewArchiveDB
  2370. '++LotusScript Development Environment:2:5:(Declarations):0:10
  2371. %INCLUDE "lsconst.lss"
  2372. Dim s As NotesSession
  2373. Dim w As NotesUIWorkspace
  2374. Dim db As NotesDatabase
  2375. Dim existingdb As NotesDatabase
  2376. Dim archivedb As NotesDatabase
  2377. Dim view As NotesView
  2378. Dim note As NotesDocument
  2379. Dim profile As NotesDocument
  2380. Dim archivedoc As NotesDocument
  2381. Dim doc As NotesUIDocument
  2382. Dim DocWasSaved As Integer
  2383. Dim DoNotClose As Variant
  2384. Dim ExistingServer As String
  2385. Dim ExistingPath As String
  2386. '++LotusScript Development Environment:2:2:Initialize:1:10
  2387. Sub Initialize
  2388.      
  2389. End Sub
  2390. '++LotusScript Development Environment:2:2:ProcessExistingArchiveDB:1:12
  2391. Sub ProcessExistingArchiveDB
  2392. an existing archive already exists and the user has choosen to create a new one
  2393. this function gets called on one of two occasions
  2394. either the document has a value in the tmpArchivePath field
  2395. or the user entered a server and path that has an existing database
  2396. we need to handle both cases
  2397. %END REM
  2398.      
  2399. End Sub
  2400. '++LotusScript Development Environment:2:2:ProcessNonExistingArchiveDB:1:8
  2401. Sub ProcessNonExistingArchiveDB 
  2402.      On Error Goto ProcessError         
  2403.      On Error 4005 Goto DbCreateError
  2404.      'render the dialog box to get the location of the archive database
  2405.      If (w.DialogBox("(ArchiveProfileDlg)",True,True,"Specify New Location")) Then
  2406.           'see if the archive database exists
  2407.           Set archivedb = New NotesDatabase(note.ArchiveServer(0),note.ArchivePath(0))
  2408.           If (archivedb.IsOpen) Then
  2409.                Msgbox "Database already exists. Enter a new location"
  2410.                ProcessNonExistingArchiveDB          
  2411.           Else
  2412.                Set archivedb = db.CreateCopy(note.ArchiveServer(0),note.ArchivePath(0))
  2413.                archivedb.Title = db.Title & " (Archive)"
  2414.           End If
  2415.           Call doc.Reload
  2416.           Call doc.Refresh
  2417.      Else
  2418.           note.ArchiveServer = ""
  2419.           note.ArchivePath = ""
  2420.      End If
  2421.      Exit Sub
  2422. DbCreateError:
  2423.      Select Case Msgbox("Error creating archive database. The server may be down or you don't have access to create new databases on the server. Click Yes to try a different location now or No to cancel.",36,"Error")
  2424.      Case 6
  2425.           ProcessNonExistingArchiveDb
  2426.      End Select
  2427.      Exit Sub        
  2428. ProcessError:
  2429.      Msgbox Error & " - (ProcessNonExistingArchiveDB)"
  2430.      Exit Sub
  2431. End Sub
  2432. '++LotusScript Development Environment:2:2:ProcessArchiveDbExists:1:8
  2433. Sub ProcessArchiveDbExists
  2434.      'this function gets called if a database already exists in the tmpArchiveServer field
  2435.      'render the dialog box to get the location of the archive database
  2436.      On Error 4005 Goto DbCreateError
  2437.      If (w.DialogBox("(ProcessExistingDbDlg)",True,True,"Specify New Location")) Then
  2438.           On Error Resume Next          
  2439.           'see if the archive database exists
  2440.           Set archivedb = New NotesDatabase(note.ArchiveServer(0),note.ArchivePath(0))
  2441.           If (archivedb.IsOpen) Then
  2442.                Msgbox "Database already exists. Enter a new location"
  2443.                ProcessArchiveDbExists          
  2444.           Else
  2445.                Call CreateNewArchiveDB
  2446.                archivedb.Title = db.Title & " (Archive)"
  2447.           End If
  2448.           Call doc.reload
  2449.           Call doc.refresh
  2450.      End If        
  2451.      Exit Sub
  2452. DbCreateError:
  2453.      Select Case Msgbox("Error creating archive database. The server may be down or you don't have access to create new databases on the server. Click Yes to try a different location now or No to cancel.",36,"Error")
  2454.      Case 6
  2455.           ProcessNonExistingArchiveDb
  2456.      End Select
  2457.      Exit Sub        
  2458. End Sub
  2459. '++LotusScript Development Environment:2:2:CreateNewArchiveDB:1:8
  2460. Sub CreateNewArchiveDB
  2461.      On Error 4005 Goto DbCreateError
  2462.      On Error Goto ProcessError
  2463.      
  2464. 'first, create the archive database     
  2465.      Set archivedb = db.CreateCopy(note.ArchiveServer(0),note.ArchivePath(0))
  2466.      
  2467. 'if the profile says to copy new documents, then copy them now
  2468.      If (note.CopyOptions(0) = "1") Then
  2469.           Set allDocs = existingdb.AllDocuments
  2470.           For i = 1 To allDocs.Count          
  2471.                Set archivedoc = allDocs.GetNthDocument(i)     
  2472.                Call archivedoc.CopyToDatabase(archivedb)
  2473.           Next
  2474.      End If
  2475.      
  2476. 'if the profile says we should delete the original archive database, then remove it
  2477.      If (note.DeleteOptions(0) = "1") Then Call existingdb.Remove
  2478.      
  2479.      Exit Sub
  2480. DbCreateError:
  2481.      Select Case Msgbox("Error creating archive database. The server may be down or you don't have access to create new databases on the server. Click Yes to try a different location now or No to cancel.",36,"Error")
  2482.      Case 6
  2483.           ProcessNonExistingArchiveDb
  2484.      End Select
  2485.      Exit Sub        
  2486. ProcessError:
  2487.      Msgbox Error & " - (ProcessNonExistingArchiveDB)"
  2488.      Exit Sub
  2489. End Sub
  2490.  Archive Profile'++LotusScript Development Environment:2:5:(Options):0:66
  2491. '++LotusScript Development Environment:2:5:(Forward):0:1
  2492. Declare Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  2493. Declare Sub Querysave(Source As Notesuidocument, Continue As Variant)
  2494. Declare Sub Postopen(Source As Notesuidocument)
  2495. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2496. '++LotusScript Development Environment:2:2:BindEvents:1:129
  2497. Private Sub BindEvents(Byval Objectname_ As String)
  2498.      Static Source As NOTESUIDOCUMENT
  2499.      Set Source = Bind(Objectname_)
  2500.      On Event Queryclose From Source Call Queryclose
  2501.      On Event Querysave From Source Call Querysave
  2502.      On Event Postopen From Source Call Postopen
  2503. End Sub
  2504. '++LotusScript Development Environment:2:2:Queryclose:1:12
  2505. Sub Queryclose(Source As Notesuidocument, Continue As Variant)
  2506.      
  2507.      If (DocWasSaved = False) Or (profile Is Nothing) Or DoNotClose Then Exit Sub
  2508.      
  2509.      ItemList = profile.Items
  2510.      Forall n In ItemList
  2511.           profile.RemoveItem(n.Name)    
  2512.      End Forall
  2513.      note.CopyAllItems profile
  2514.      profile.SaveOptions = "1"
  2515.      profile.save True, True
  2516.      
  2517. End Sub
  2518. '++LotusScript Development Environment:2:2:Querysave:1:12
  2519. Sub Querysave(Source As Notesuidocument, Continue As Variant)
  2520.      
  2521.      DocWasSaved = True
  2522.      DoNotClose = False     
  2523.      If Not(profile Is Nothing) Then note.SaveOptions = "0"
  2524.      If (note.ArchivePath(0) = "") Then Msgbox "You will need to specify a location of the archive database before you can archive documents.",16     
  2525.      source.Reload
  2526.      source.RefreshHideFormulas  
  2527. End Sub
  2528. '++LotusScript Development Environment:2:2:Postopen:1:12
  2529. Sub Postopen(Source As Notesuidocument)
  2530.      'initialize global variables
  2531.      Set note = source.Document
  2532.      Set w = New NotesUIWorkspace
  2533.      Set s = New NotesSession
  2534.      Set db = s.CurrentDatabase
  2535.      Set view = db.GetView("Archiving")
  2536.      Set doc = source
  2537.      'turn off auto reload to make processing faster
  2538.      source.AutoReload = False
  2539.      'if this is not a new doc, we don't need to continue
  2540.      If Not (source.IsNewDoc) Then Exit Sub
  2541.      'get the existing profile
  2542.      key = "Archive Profile"
  2543.      Set profile = view.GetDocumentByKey(key,False)
  2544.      If profile Is Nothing Then
  2545.           'an existing profile was not found
  2546.           note.ProtectFromArchive = 1
  2547.           note.ExcludeFromView = "D"
  2548.           note.From = "Archiving"
  2549.           note.Subject = "Archive Profile"
  2550.           note.Categories = "(Archive)"
  2551.           Call note.ReplaceItemValue("_ViewIcon", 11)
  2552.           source.reload
  2553.      Else
  2554.           'copy the profile fields to this document
  2555.           ItemList = note.Items
  2556.           Forall n In ItemList
  2557.                note.RemoveItem(n.Name)    
  2558.           End Forall
  2559.           profile.CopyAllItems note
  2560.           source.Reload
  2561.           If source.EditMode Then source.Refresh
  2562.      End If
  2563.      
  2564.      DocWasSaved = False
  2565.      
  2566. End Sub
  2567. K     ,`
  2568. Archive Profile 
  2569. ArchiveExpired
  2570. Archive Expired documents | Yes
  2571.     after
  2572. ExpiredLife
  2573. Number cannot be negative.{
  2574.     3S4S6S11SExpiredLife
  2575.     days
  2576. ArchiveInactive
  2577. Archive documents which have no activity | Yes
  2578.     after
  2579. DocumentLife
  2580. Number cannot be negative.{
  2581.     3S4S6S11SDocumentLife
  2582.     days
  2583. ArchiveLog
  2584. Generate an Archive Log each time an archive occurs | Yes
  2585. IncludeDoclinks
  2586. Include document links | Yes
  2587.     Archive Profile editors:
  2588. ProfileEditors
  2589.     Archive Server:
  2590. ArchivePath
  2591. ArchiveServer
  2592. Local
  2593. ArchiveServer
  2594.     3S4S9S10S12S14StmpArchiveServer
  2595.     Archive Path:
  2596. ArchivePath
  2597. tmpArchivePath
  2598. Categori_zeK
  2599. _Edit Document
  2600. Send Docu_ment
  2601. _Forward
  2602. Close
  2603.     0S0E
  2604. Save Profile 
  2605.     0S0E
  2606. Specify Archive Location'++LotusScript Development Environment:2:5:(Options):0:66
  2607. '++LotusScript Development Environment:2:5:(Forward):0:1
  2608. Declare Sub Click(Source As Button)
  2609. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2610. '++LotusScript Development Environment:2:2:BindEvents:1:129
  2611. Private Sub BindEvents(Byval Objectname_ As String)
  2612.      Static Source As BUTTON
  2613.      Set Source = Bind(Objectname_)
  2614.      On Event Click From Source Call Click
  2615. End Sub
  2616. '++LotusScript Development Environment:2:2:Click:1:12
  2617. Sub Click(Source As Button)
  2618.      
  2619. 'see if an archive database already exists based upon some field values
  2620.      If (Len(note.tmpArchivePath(0)) >0) Then
  2621.           If (note.tmpArchiveServer(0) = "Local") Then
  2622.                Fullpath$ = note.tmpArchivePath(0)
  2623.                ExistingServer = ""
  2624.           Else
  2625.                Fullpath$ = note.tmpArchiveServer(0) + "!!" + note.tmpArchivePath(0)
  2626.                ExistingServer = note.tmpArchiveServer(0)
  2627.           End If
  2628.           ExistingPath = note.tmpArchivePath(0)
  2629.           Set existingdb = New NotesDatabase(ExistingServer,ExistingPath)
  2630.           If (existingdb.IsOpen) Then
  2631.                Select Case Msgbox("The database (" + Fullpath$ + ") already exists. To create a new database, select OK, otherwise click Cancel",33,"Database already exists")
  2632.                Case IDOK: ProcessArchiveDBExists
  2633.                End Select
  2634.           Else
  2635.                ProcessNonExistingArchiveDB
  2636.           End If
  2637.      Else
  2638.           ProcessNonExistingArchiveDB
  2639.      End If
  2640. End Sub
  2641. InstructionsF
  2642. (ArchiveInstructions)
  2643.     2S4S
  2644. _Move to Folder...    
  2645. _Remove from FolderK
  2646. O=Lotus Notes
  2647. O=Lotus Notes
  2648. PURSAFO
  2649. |.:#U
  2650. O=Lotus Notes
  2651. CN=Lotus Notes Template Development/O=Lotus Notes
  2652. PURSAFO
  2653. Fde!f^^
  2654. DocLife
  2655. ArchiveDate
  2656. ObsoleteLife
  2657. $ManualArchivers_O
  2658. $TITLE
  2659. $Info
  2660. $WindowTitle
  2661. $Script
  2662. $$Script_O
  2663. $$ScriptName
  2664. $$FormScript
  2665. $$$FormScript_O
  2666. ExpiredLife
  2667. DocumentLife
  2668. $Body
  2669. $ACTIONS
  2670. $SCRIPTOBJ_6
  2671. ed$UpdatedBy$ACLDigest$Signature$DesignVersion$Version$Formula$FormulaClass$Collation$TemplateModTime$TemplateServerName$TemplateFileName$Flags$FlagsNoRefresh$TITLEIconBitmap$Info$SubForms$WindowTitle$Fonts$Script$$Script_O$$ScriptName$$Reviewers$Reviewers_ODocumentAuthorsDocumentReadersLastEditor$OLEObjField$OLEObjRichTextFieldSubjectFromDateTimeCreatedCategoriesReviewersPreviousReviewersCURRENTREVIEWERSFutureReviewersReviewStyleReviewWindowReviewTimeNotifyAfterReviewerLogBody$Body$ACTIONS$$XMB$$XMB_2$$XMB_3$LicenseeOriginalSubjectImmediateParentSubject$TYPE$Index$Collation1$Collation2$VIEWFORMAT$Comment$Collation3$Collation4$Name$FolderObject$FolderIDTable$ViewMapDataset$ViewMapLayoutReviewTime_1SaveChoices$$FormScript$$$FormScript_O_ViewIcon$OLEObjProgIDOLEBodyDate_1TimeCreated_1$AUTOLAUNCH$AssistType$AssistLastRun$AssistDocCount$AssistFlags$AssistTrigger$AssistInfo$AssistQuery$AssistAction$AssistAction_Ex$AssistRunInfo$AssistVersion$LeftToDo$ClassDocLifeArchiveDateObsoleteLife$ManualArchivers_OArchiveExpiredExpiredLifeArchiveInactiveDocumentLifeArchiveLogIncludeDoclinksProfileEditors$SCRIPTOBJ_6$MessageTypeLogCountLogTotalArchiveTrailer$SCRIPTOBJ_10$ViewGlobalScript_O$Operation$ScanArchiveLocationArchiveServerArchivePathDeleteOptionsCopyOptions$ReplVersion$ReplSrcServers$ReplClassMasks$ReplFormula$ReplView$ReplPrivateFolder$ReplFields$ScriptLib$ScriptLib_O$PublicAccess
  2672. Archive Log
  2673. Times New Roman
  2674.  ArchiveLog
  2675. $MessageType
  2676. %12-/H
  2677. !G,$W,#I4)X6(H,4W,4G98X<6h*#x+$g9)w8(h.6u-2g<5w<4>B=YA
  2678. WC9iB.xC-iF8wH8jT>zR<rd?
  2679. 2L3;FK=Dj=C:FQ8Qp<b
  2680. GEHXHGLQLZSKEKUVKSGRYYWWgJEvIEiTHyWFfLRwKSgYWwZV[cXtfYPZjl\dWfphhhvigkqlysjhktvlsjtxyww
  2681. Archive Log 
  2682. LogCount
  2683. LogTotal
  2684.  for 
  2685. ArchiveDate
  2686. ArchiveTrailer
  2687. ArchiveTrailer
  2688.     Hidden:  
  2689. Archive Log for 
  2690. ArchiveDate
  2691.     1S2S
  2692. Subject
  2693. (Archive)
  2694. Categories
  2695. Close
  2696.     0S0E
  2697. Categori_ze
  2698. _Edit Document
  2699. Send Docu_ment
  2700. _Forward
  2701. _Move to Folder...
  2702. _Remove from Folder
  2703. O=Lotus Notes
  2704. O=Lotus Notes
  2705. PURSAFO
  2706. |.:#U
  2707. O=Lotus Notes
  2708. CN=Lotus Notes Template Development/O=Lotus Notes
  2709. PURSAFO
  2710. Fde!f^^
  2711. DocLife
  2712. $ManualArchivers_O
  2713. ObsoleteLife
  2714. DocumentLife
  2715. $TITLE
  2716. $Info
  2717. $WindowTitle
  2718. $$Script_O
  2719. $$ScriptName
  2720. ArchiveDate
  2721. $Body
  2722. $ACTIONS
  2723. _Forward
  2724. Categori_zeK
  2725. Edit Document
  2726. _Move to Folder...
  2727. _Remove from Folder...
  2728. Setup Archive...L
  2729. ArchiveProfile
  2730. Server
  2731.     1S2S6S
  2732.     0R1S2S6S
  2733. Server
  2734.     0R7S8S11S13S14S15S16S
  2735. Archive NowK
  2736. Archive Profile
  2737.     1S2S
  2738. AllDocs
  2739. NoCache
  2740. ($Profiles)
  2741. ArchivePath
  2742.     0R1S2S8S10S12S14S
  2743. AllDocs
  2744. Error
  2745. You must specify a location for the archive database
  2746.     0R3S4S5S6S14S15S
  2747. AllDocs2
  2748. NoCache
  2749. ($Profiles)
  2750. ArchivePath
  2751. Archive Now
  2752. Before you can begin archiving documents you need to fill out an Archive Profile.  Please press "Setup Archive...".
  2753.     0RR1S2S12S14S16S18S28S30S34S
  2754. Archiving
  2755. Are you sure you want to move documents to the archive database now?
  2756.     0R6S8S11S13S
  2757. AlreadyArchived
  2758. MailArchived|
  2759. Archiving
  2760. Since this is the first time you have requested an archive, it may take several minutes.  Do you want to proceed?
  2761. Archiving
  2762. No documents were archived
  2763.     0RR1S2S8S9S11S13S19S21S24S26S32S34S
  2764. MailArchived
  2765.     0RR1S2S3S
  2766. Periodic Archive
  2767.     0R4S
  2768. Server
  2769.     1S2S6S
  2770.     0R1S2S6S
  2771. Server
  2772.     0R7S8S11S13S14S15S16S
  2773. Enable Scheduled Archivingf
  2774. AllDocs
  2775. Archiving
  2776. Archive Profile
  2777. Archive Now
  2778. Before you can begin archiving documents you need to fill out an Archive Profile.  Please press "Setup Archive...".
  2779.     1S2S10S12S14S16S20S26S28S32S
  2780. Periodic Archive
  2781.     0RR4S
  2782. Server
  2783.     1S2S6S
  2784.     0R1S2S6S
  2785. Periodic Archive
  2786. Server
  2787.     0R4S5R12S13S16S18S19S20S21S
  2788. Disable Scheduled ArchivingKf
  2789. AllDocs
  2790. Archiving
  2791. Archive Profile
  2792. Archive Now
  2793. Before you can begin archiving documents you need to fill out an Archive Profile.  Please press "Setup Archive...".
  2794.     1S2S10S12S14S16S20S26S28S32S
  2795. Periodic Archive
  2796.     0RR4S
  2797. Server
  2798.     1S2S6S
  2799.     0R1S2S6S
  2800. Periodic Archive
  2801. Server
  2802.     0R7S8R15S16S19S21S22S23S24S
  2803. Open Archive Db...'++LotusScript Development Environment:2:5:(Options):0:66
  2804. '++LotusScript Development Environment:2:5:(Forward):0:1
  2805. Declare Sub Click(Source As Button)
  2806. '++LotusScript Development Environment:2:5:(Declarations):0:10
  2807. Dim s As NotesSession
  2808. Dim w As NotesUIWorkspace
  2809. Dim sourcedb As NotesDatabase
  2810. Dim view As NotesView
  2811. Dim profile As NotesDocument
  2812. Dim server As String
  2813. '++LotusScript Development Environment:2:2:BindEvents:1:129
  2814. Private Sub BindEvents(Byval Objectname_ As String)
  2815.      Static Source As BUTTON
  2816.      Set Source = Bind(Objectname_)
  2817.      On Event Click From Source Call Click
  2818. End Sub
  2819. '++LotusScript Development Environment:2:2:Click:1:12
  2820. Sub Click(Source As Button)
  2821.      
  2822.      On Error Goto ErrorRoutine
  2823. '91 is Object Variable Not Set     
  2824.      On Error 91 Resume Next 
  2825. '4412 is the notes database does not exist     
  2826.      On Error 4412 Goto DatabaseNotExistError
  2827.      
  2828.      Set s = New NotesSession
  2829.      Set sourcedb = s.CurrentDatabase
  2830.      Set view = sourcedb.GetView("($Profiles)")
  2831.      key = "Archive Profile"
  2832.      Set profile = view.GetDocumentByKey(key)
  2833.      
  2834.      If profile Is Nothing Then
  2835.           Messagebox "There is no Archive Db for this database.", 0 + 64, "Archive"
  2836.           Exit Sub
  2837.      End If
  2838.      
  2839.      ArchivePath = profile.ArchivePath
  2840.      ArchiveServer = profile.ArchiveServer
  2841.      If (ArchivePath(0) = "") Then
  2842.           Messagebox "The archive database cannot be found. Click on the Setup Archive button to create a new archive database.",16,"Database not found"
  2843.           Exit Sub              
  2844.      End If
  2845.      
  2846.      Set w = New NotesUIWorkspace
  2847.      
  2848.      Call w.OpenDatabase(ArchiveServer(0), ArchivePath(0), "", "", "1")
  2849.      
  2850.      Exit Sub
  2851.      
  2852. ErrorRoutine:
  2853.      Messagebox "Unexpected condition: " & Err & " - " & Error
  2854.      Exit Sub
  2855. DatabaseNotExistError:
  2856.      Messagebox "The archive database cannot be found. Click on the Setup Archive button to create a new archive database.",16,"Database not found"
  2857.      Exit Sub     
  2858. End Sub
  2859. O=Lotus Notes
  2860. O=Lotus Notes
  2861. PURSAFO
  2862. |.:#U
  2863. O=Lotus Notes
  2864. CN=Lotus Notes Template Development/O=Lotus Notes
  2865. PURSAFO
  2866. Fde!f^^
  2867. $TITLE
  2868. $Index
  2869. $Formula
  2870. $FormulaClass
  2871. $VIEWFORMAT
  2872. $Comment
  2873. $ACTIONS
  2874. $SCRIPTOBJ_10
  2875. $ViewGlobalScript_O
  2876. '++LotusScript Development Environment:2:5:(Options):0:66
  2877. '++LotusScript Development Environment:2:5:(Forward):0:1
  2878. Declare Sub Exiting(Source As Field)
  2879. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2880. '++LotusScript Development Environment:2:2:BindEvents:1:129
  2881. Private Sub BindEvents(Byval Objectname_ As String)
  2882.      Static Source As FIELD
  2883.      Set Source = Bind(Objectname_)
  2884.      On Event Exiting From Source Call Exiting
  2885. End Sub
  2886. '++LotusScript Development Environment:2:2:Exiting:1:12
  2887. Sub Exiting(Source As Field)
  2888.      formdoc.refresh
  2889. End Sub
  2890. "MS Sans Serif
  2891. New Powerpoint Presentation
  2892. Subject
  2893.     4S6S
  2894. '++LotusScript Development Environment:2:5:(Options):0:74
  2895. Option Public
  2896. '++LotusScript Development Environment:2:5:(Forward):0:1
  2897. '++LotusScript Development Environment:2:5:(Declarations):0:2
  2898.  PowerPoint Document
  2899. DocumentWorkflow
  2900.     DocumentWorkflow Subform
  2901.     :  This Subform includes the LotusScript, Actions, and hidden fields which are used in all versions of the Document form.
  2902.     Hidden Fields:-------------------------------------------------------------------
  2903. DocumentAuthors
  2904.     4S6S
  2905. DocumentAuthors
  2906. Scope
  2907. Private
  2908. Reviewers
  2909.     3S4S6S7S8S10SDocumentReaders
  2910. LastEditor
  2911. DocumentAuthors
  2912.     0S0E
  2913. tmpUseOLE
  2914. $OLEObjField
  2915. OLEBody
  2916. $OLEObjRichTextField
  2917. _ViewIcon
  2918. PowerPoint.Show
  2919. $OLEObjProgID
  2920. Scope
  2921. Public
  2922. tmpUseOle
  2923.     1S2S3S2E4S5S2E6S
  2924. (DocProperties) | DocProperties
  2925. <a>7`^
  2926. `!bb!R
  2927. Title:
  2928. Subject
  2929.     0S0E
  2930. SubjectRequired: description of this document 
  2931.     Created by:    
  2932. FromDocument author name
  2933.      on 
  2934. DateThe date/time when the document was composed
  2935.      at 
  2936. TimeCreated
  2937.     Category
  2938. Miscellaneous
  2939. Categories
  2940. You must enter a category for your document
  2941.     3S4S6S11SCategoriesPress ENTER for list of keywords or to add a new keyword
  2942. ($All)
  2943.     4S6S
  2944. Status
  2945. StatusListv
  2946.     4S6S7S8S9S
  2947.     Reviewers:    
  2948. Reviewers
  2949. Reviewers
  2950. Reviewers
  2951. Status
  2952. StatusListv
  2953. PreviousReviewers
  2954.     4S6S7S8S9S10S11S12S13S
  2955.     Previous reviewers:
  2956. PreviousReviewers
  2957. PreviousReviewers
  2958. Status
  2959. StatusListv
  2960.     4S6S7S8S9S
  2961.     Current reviewer:    
  2962. CurrentReviewers
  2963. CurrentReviewers
  2964. Status
  2965. StatusListv
  2966. FutureReviewers
  2967.     4S6S7S8S9S10S11S12S13S
  2968.     Future reviewers:
  2969. FutureReviewers
  2970. FutureReviewers
  2971. Status
  2972. StatusListv
  2973. Status
  2974. StatusListv
  2975.     4S6S7S8S9S13S15S16S17S18S
  2976.     Review type:
  2977. ReviewStyle
  2978. ReviewStyle
  2979. Serial review | Serial.NoVersionsSerial (keep all revisions) | Serial.VersionsDocument reservations | Parallel.NoVersionsResponse review | Parallel.Versions
  2980.     Deadline:
  2981. ReviewWindow
  2982. ReviewWindow
  2983. No time limit for each review | NoLimitMove to next reviewer after: | MoveOnKeep sending reminders after: | Reminder
  2984. ReviewTime
  2985. ReviewTime
  2986. ReviewWindow
  2987. NoLimit
  2988. day(s)
  2989.     3S4S6S8S
  2990. tmpReviewUnits
  2991.     Notification:
  2992. NotifyAfter
  2993. NotifyAfter
  2994. Notify originator after each reviewer | EachNotify originator after final reviewer | Final
  2995.     ....................
  2996. ReviewerLog
  2997.     1S2S3S4S
  2998. Reviewer Log
  2999. ReviewerLog
  3000.     1S2S
  3001. ReviewerLog
  3002. ReviewerLog
  3003. Scope
  3004. Public
  3005.     1S2S
  3006. OLEBody
  3007. BodyEnter the text (or a description) of the document.
  3008. _Edit Document
  3009. DocumentAuthors
  3010.     9S15S
  3011. Categori_zeK
  3012. _Forward
  3013. _Move to Folder...
  3014. _Remove from FolderK
  3015. Send Docu_ment
  3016. O=Lotus Notes
  3017. O=Lotus Notes
  3018. PURSAFO
  3019. |.:#U
  3020. O=Lotus Notes
  3021. CN=Lotus Notes Template Development/O=Lotus Notes
  3022. PURSAFO
  3023. Fde!f^^
  3024. $$Reviewers
  3025. $Reviewers_O
  3026. $TITLE
  3027. $Info
  3028. $SubForms
  3029. $WindowTitle
  3030. $Script
  3031. $$Script_O
  3032. $$ScriptName
  3033. _ViewIcon
  3034. TimeCreated
  3035. ReviewTime
  3036. $Body
  3037. $ACTIONS
  3038. (Unlock Document)Use if a doc is accidentally left in a locked state.  Can be accessed by designers and managers from the Review Status view.003
  3039. Lotus NotesCN=Lotus Notes Template Development/O=Lotus Notesg
  3040. ##########################################################
  3041. (ProcessExistingDbDlg)DC
  3042. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisStdR4DocLib##################################################
  3043. ($Profiles)|($Profiles)
  3044. PersonName"
  3045.     1S2S
  3046. $70PersonName$Conflict
  3047. Profile
  3048.     L1S5S1!
  3049. $70PersonName
  3050. $70Type2
  3051. PersonName"
  3052.     1S2S
  3053. PersonNamePerson Name&
  3054. Lotus NotesCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisYStdR4DocLib#######
  3055. (ArchiveInstructions)(ArchiveInstructions)
  3056. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesCN=Ryan Jansen/O=IrisCStdR4DocLib###############
  3057. 30719
  3058. CN=Ryan Jansen/O=Iris#################################################
  3059. xazm`
  3060. (DocProperties)DocPropertiesCUA3
  3061. CN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus Notes####
  3062. CN=Ryan Jansen/O=IrisJoe BlowCN=Ryan Jansen/O=IrisCN=Lotus Notes Template Development/O=Lotus NotesOLERoutiness34QP1##
  3063. ##########################################################
  3064. ##########################################################
  3065. ##########################################################
  3066. ##########################################################
  3067. ##########################################################
  3068. ##########################################################
  3069. ##########################################################
  3070. ##########################################################
  3071. ##########################################################
  3072. ##########################################################
  3073. ##########################################################
  3074. ##########################################################
  3075. ##########################################################
  3076. ##########################################################
  3077. ##########################################################
  3078. ##########################################################
  3079. ##########################################################
  3080. ##########################################################
  3081. ##########################################################
  3082. (ArchiveProfileDlg)
  3083. Local
  3084. ArchiveLocation
  3085. Locally | LocalOn Server | Server
  3086. ArchiveLocation
  3087. Local
  3088.     1S2S
  3089.     0S0E
  3090. ArchiveServer
  3091. ArchiveLocation
  3092. Local
  3093. ArchiveServer
  3094. ArchiveServer
  3095.     4RS4E6R7S8S10RS4E12R13S14S16RS4E20S23R
  3096. ArchiveServer
  3097. CurrentPath
  3098.     1S2S6S
  3099. CurrentFile
  3100. CurrentPath
  3101.     0R1S2S6S
  3102. FileOnly
  3103. CurrentPath
  3104. CurrentFile
  3105. Macintosh
  3106. CurrentPath
  3107. CurrentFile
  3108. CurrentPath
  3109. CurrentFile
  3110. CurrentFile
  3111.     0R1S2S8S11S15S19S20S21S22S26S29S33S36S37S38S39S40S44S47S51S54S
  3112. DirOnly
  3113. CurrentPath
  3114. Macintosh
  3115. CurrentFile
  3116. CurrentFile
  3117. CurrentFile
  3118. Macintosh
  3119. CurrentPath
  3120. CurrentFile
  3121. CurrentPath
  3122. CurrentFile
  3123.     0R1S2S8S11S14S15S16S21S23S2E24S27S28S34S36S37S39S43S45S46S49S50S51S52S53S57S60S64S66S67S69S70S71S72S73S77S80S84S86S87S89S
  3124. dftvalue
  3125. DirOnly
  3126. FileOnly"
  3127. CurrentPath
  3128.     0RR1S2S3S4S7S8S10S12S13S17S
  3129. Macintosh
  3130. dftvalue
  3131. dftvalue
  3132. dftvalue
  3133. dftvalue
  3134. dftvalue
  3135.     0R3S4S5S6S21S22S23S24S25S26S
  3136. ArchivePath
  3137. Please specify the filename of the archive database
  3138.     3S4S6S11SArchivePath
  3139.     Documents are archived:
  3140.     Archive database is on server:
  3141.     Archive file:
  3142. servers
  3143. names.nsf
  3144. ($ServersLookup)
  3145.     1S2S
  3146. selectedserver
  3147. Server
  3148. Please select a server to create your archive database on.
  3149. ArchiveServer
  3150. servers
  3151.     0R1S2S
  3152. ArchiveServer
  3153. selectedServer
  3154.     0R1S2S3S
  3155. ?_?__
  3156. `!b`1
  3157. 7`^///?
  3158. ?b___
  3159. `bOOO
  3160. `<b!R
  3161. @If(@IsN
  3162. O=Lotus Notes
  3163. O=Lotus Notes
  3164. PURSAFO
  3165. |.:#U
  3166. O=Lotus Notes
  3167. CN=Lotus Notes Template Development/O=Lotus Notes
  3168. PURSAFO
  3169. Fde!f^^
  3170. h#99u
  3171. $TITLE
  3172. $Info
  3173. $$ScriptName
  3174. $Body
  3175. (ProcessExistingDbDlg)'++LotusScript Development Environment:2:5:(Options):0:66
  3176. '++LotusScript Development Environment:2:5:(Forward):0:1
  3177. Declare Sub Postopen(Source As Notesuidocument)
  3178. '++LotusScript Development Environment:2:5:(Declarations):0:2
  3179. '++LotusScript Development Environment:2:2:BindEvents:1:129
  3180. Private Sub BindEvents(Byval Objectname_ As String)
  3181.      Static Source As NOTESUIDOCUMENT
  3182.      Set Source = Bind(Objectname_)
  3183.      On Event Postopen From Source Call Postopen
  3184. End Sub
  3185. '++LotusScript Development Environment:2:2:Postopen:1:12
  3186. Sub Postopen(Source As Notesuidocument)
  3187.      source.RefreshHideFormulas
  3188. End Sub
  3189. DeleteOptions
  3190. Delete the original database|1
  3191.     Documents are archived:
  3192. ArchiveLocation
  3193. Local
  3194.     1S2S
  3195.     Archive database is on server:
  3196.     Archive file:
  3197. Local
  3198. ArchiveLocation
  3199. Locally | LocalOn Server | Server
  3200.     0S0E
  3201. ArchiveServer
  3202. ArchiveLocation
  3203. Local
  3204. ArchiveServer
  3205. ArchiveServer
  3206.     4RS4E6R7S8S10RS4E12R13S14S16RS4E20S23R
  3207. ArchiveServer
  3208. CurrentPath
  3209.     1S2S6S
  3210. CurrentFile
  3211. CurrentPath
  3212.     0R1S2S6S
  3213. FileOnly
  3214. CurrentPath
  3215. CurrentFile
  3216. Macintosh
  3217. CurrentPath
  3218. CurrentFile
  3219. CurrentPath
  3220. CurrentFile
  3221. CurrentFile
  3222.     0R1S2S8S11S15S18S19S20S21S22S26S29S33S36S37S38S39S40S44S47S51S54S
  3223. DirOnly
  3224. CurrentPath
  3225. CurrentFile
  3226. Macintosh
  3227. CurrentPath
  3228. CurrentFile
  3229. CurrentPath
  3230. CurrentFile
  3231.     0R1S2S8S11S15S17S18S20S21S22S23S24S28S31S35S37S38S40S41S42S43S44S48S51S55S57S58S60S
  3232. DirOnly
  3233. FileOnly"
  3234. CurrentPath
  3235.     0RR1S2S5S6S8S10S11S15S
  3236. ArchivePath
  3237. Please specify the filename of the archive database
  3238.     3S4S6S11SArchivePath
  3239.     After creating the new archive db:
  3240. servers
  3241. names.nsf
  3242. ($ServersLookup)
  3243.     1S2S
  3244. selectedserver
  3245. Server
  3246. Please select a server to create your archive database on.
  3247. ArchiveServer
  3248. servers
  3249.     0R1S2S
  3250. ArchiveServer
  3251. selectedServer
  3252.     0R1S2S3S
  3253. ?_?__
  3254. `!b`1
  3255. 7`^///?
  3256. ?b___
  3257. `bOOO
  3258. `<b!R
  3259. @If(@IsN
  3260. CopyOptions
  3261. Copy documents from the original archive to the new one|1
  3262. O=Lotus Notes
  3263. O=Lotus Notes
  3264. PURSAFO
  3265. |.:#U
  3266. O=Lotus Notes
  3267. CN=Lotus Notes Template Development/O=Lotus Notes
  3268. PURSAFO
  3269. Fde!f^^
  3270. Uxwu:*
  3271. $TITLE
  3272. $Info
  3273. $$Script_O
  3274. $$ScriptName
  3275. $$FormScript
  3276. $$$FormScript_O
  3277. $Body
  3278. Delete 
  3279.     0S0E
  3280. _Forward
  3281. Categori_ze
  3282. Edit Message
  3283. Out Of the Office
  3284. Out Of Office Profile
  3285. _Move to Folder...
  3286. _Remove from Folder...
  3287. O=Lotus Notes
  3288. O=Lotus Notes
  3289. PURSAFO
  3290. |.:#U
  3291. O=Lotus Notes
  3292. CN=Lotus Notes Template Development/O=Lotus Notes
  3293. PURSAFO
  3294. Fde!f^^
  3295. $Index
  3296. $Formula
  3297. $FormulaClass
  3298. $VIEWFORMAT
  3299. $Comment
  3300. $ACTIONS
  3301. Times New Roman
  3302.  (ArchiveInstructions)
  3303. Archive Profile Help
  3304. The Archive Profile allows you to specify which documents should
  3305. be removed from the current database and stored in an archive
  3306. database.  This allows you to keep your discussion up-to-date 
  3307. with only the latest topics.  
  3308. You can choose the following in your ArchiveProfile:
  3309.     Archive expired documents
  3310.         Choose this option if you wish to archive documents which have been 
  3311.         marked as expired. Indicate the number of days to wait before the expired
  3312.         documents are archived.
  3313.     Archive documents which have no activity
  3314.         Choose this option if you wish to archive documents which have had 
  3315.         no activity. Indicate the number of days to wait before the inactive documents 
  3316.         are archived.    
  3317.     Generate an Archive Log each time an archive occurs
  3318.         Choose this option if you wish to have an Archive Log created when documents 
  3319.         are archived.  You can also indicate if you would like document links to the 
  3320.         archived documents included in the Archive Log.
  3321.     Archive Profile Editors:
  3322.         Specify the names of those users that should be allowed to modify the Archive Profile.
  3323.     Specify Archive Location:
  3324.         Click on this button to specify the server and filename of the Archive database. The archive
  3325.         database is created for you based upon the values specified in the dialog box.
  3326. O=Lotus Notes
  3327. O=Lotus Notes
  3328. PURSAFO
  3329. |.:#U
  3330. O=Lotus Notes
  3331. CN=Lotus Notes Template Development/O=Lotus Notes
  3332. PURSAFO
  3333. Fde!f^^
  3334. $TITLE
  3335. $Info
  3336. $$ScriptName
  3337. $Body
  3338.  DocProperties'++LotusScript Development Environment:2:5:(Options):0:66
  3339. '++LotusScript Development Environment:2:5:(Forward):0:1
  3340. Declare Sub Exiting(Source As Field)
  3341. '++LotusScript Development Environment:2:5:(Declarations):0:2
  3342. '++LotusScript Development Environment:2:2:BindEvents:1:129
  3343. Private Sub BindEvents(Byval Objectname_ As String)
  3344.      Static Source As FIELD
  3345.      Set Source = Bind(Objectname_)
  3346.      On Event Exiting From Source Call Exiting
  3347. End Sub
  3348. '++LotusScript Development Environment:2:2:Exiting:1:12
  3349. Sub Exiting(Source As Field)
  3350.      
  3351. End Sub
  3352. Scope
  3353. Public
  3354. tmpUseOle
  3355.     1S2S3S2E4S5S2E6S
  3356. <a>7`^
  3357. `!bb!R
  3358. Title:
  3359. Subject
  3360.     0S0E
  3361. SubjectRequired: description of this document 
  3362.     Created by:    
  3363. FromDocument author name
  3364.      on 
  3365. DateThe date/time when the document was composed
  3366.      at 
  3367. TimeCreated
  3368.     Category
  3369. Miscellaneous
  3370. Categories
  3371. You must enter a category for your document
  3372.     3S4S6S11SCategoriesPress ENTER for list of keywords or to add a new keyword
  3373. In the case of reading an existing document, it is not necessary to do the @DbColumn because we don't support the use of Keyword Synonyms in this application, and thus translation doesn't need to be done.
  3374. NoCache
  3375. ($All)
  3376.     0R4S5S7S9S15S17S19S
  3377. Status
  3378. StatusListv
  3379.     4S6S7S8S9S
  3380.     Reviewers:    
  3381. Reviewers
  3382. Reviewers
  3383. Reviewers
  3384. Status
  3385. StatusListv
  3386. PreviousReviewers
  3387.     4S6S7S8S9S10S11S12S13S
  3388.     Previous reviewers:
  3389. PreviousReviewers
  3390. PreviousReviewers
  3391. Status
  3392. StatusListv
  3393.     4S6S7S8S9S
  3394.     Current reviewer:    
  3395. CurrentReviewers
  3396. CurrentReviewers
  3397. Status
  3398. StatusListv
  3399. FutureReviewers
  3400.     4S6S7S8S9S10S11S12S13S
  3401.     Future reviewers:
  3402. FutureReviewers
  3403. FutureReviewers
  3404. Status
  3405. StatusListv
  3406. Status
  3407. StatusListv
  3408.     4S6S7S8S9S13S15S16S17S18S
  3409.     Review type:
  3410. ReviewStyle
  3411. ReviewStyle
  3412. Serial review | Serial.NoVersionsSerial (keep all revisions) | Serial.VersionsDocument reservations | Parallel.NoVersionsResponse review | Parallel.Versions
  3413.     Deadline:
  3414. ReviewWindow
  3415. ReviewWindow
  3416. No time limit for each review | NoLimitMove to next reviewer after: | MoveOnKeep sending reminders after: | Reminder
  3417. ReviewTime
  3418. ReviewTime
  3419. ReviewWindow
  3420. NoLimit
  3421. day(s)
  3422.     3S4S6S8S
  3423. tmpReviewUnits
  3424.     Notification:
  3425. NotifyAfter
  3426. NotifyAfter
  3427. Notify originator after each reviewer | EachNotify originator after final reviewer | Final
  3428.     ....................
  3429. ReviewerLog
  3430.     1S2S3S4S
  3431. Reviewer Log
  3432. ReviewerLog
  3433.     1S2S
  3434. ReviewerLog
  3435. ReviewerLog
  3436. O=Lotus Notes
  3437. O=Lotus Notes
  3438. PURSAFO
  3439. |.:#U
  3440. O=Lotus Notes
  3441. CN=Lotus Notes Template Development/O=Lotus Notes
  3442. PURSAFO
  3443. Fde!f^^
  3444. $TITLE
  3445. $Info
  3446. $$Script_O
  3447. $$ScriptName
  3448. $$Reviewers
  3449. $Reviewers_O
  3450. TimeCreated
  3451. ReviewTime
  3452. $Body
  3453. '++LotusScript Development Environment:2:5:(Options):0:66
  3454. Option Public
  3455. '++LotusScript Development Environment:2:5:(Forward):0:1
  3456. Declare Sub Initialize
  3457. Declare Sub GetOrCreateOLEObject
  3458. Declare Sub DocQueryOpen(source As NotesUIDocument, mode As Integer, isnewdoc As Variant, continue As Variant)
  3459. Declare Sub DocPostOpen(source As NotesUIDocument)
  3460. Declare Sub DocQueryModeChange(source As NotesUIDocument, continue As Variant)
  3461. Declare Sub DocPostModeChange(source As NotesUIDocument)
  3462. Declare Sub DocPostRecalc(source As NotesUIDocument)
  3463. Declare Sub DocQuerySave(Source As NotesUIDocument, Continue As Variant)
  3464. Declare Sub DocQueryClose(Source As NotesUIDocument, Continue As Variant)
  3465. Declare Sub InitializeDocument(source)
  3466. Declare Sub Postopen(Source As Notesuidocument)
  3467. Declare Sub RebuildList(InputList As Variant)
  3468. Declare Sub SetReviewerLists
  3469. Declare Sub SendNotification
  3470. Declare Sub InitiateReview(source)
  3471. Declare Sub GetReviewSequence
  3472. Declare Sub ResetAuthorNames
  3473. Declare Sub InitializeStatusList
  3474. '++LotusScript Development Environment:2:5:(Declarations):0:10
  3475. '***** OBJECT VARIABLES *****
  3476. Dim s As NotesSession
  3477. Dim w As NotesUIWorkspace
  3478. Dim doc As NotesUIDocument
  3479. Dim db As NotesDatabase
  3480. Dim note As NotesDocument
  3481. Dim tempnote As NotesDocument
  3482. Dim maildoc As NotesDocument
  3483. Dim parent As NotesDocument
  3484. Dim child As NotesDocument
  3485. Dim children As NotesDocumentCollection
  3486. Dim item As NotesItem
  3487. Dim rtitem As NotesRichTextItem
  3488. Dim dt As NotesDateTime
  3489. '***** DATA VARIABLES - FIELDS DEFINED ON FORM*****
  3490. Dim ReviewStyle As Variant
  3491. Dim ReviewSeq As Variant
  3492. Dim Reviewers As Variant
  3493. Dim PreviousReviewers As Variant
  3494. Dim FutureReviewers As Variant
  3495. Dim CurrentReviewers As Variant
  3496. Dim DocumentAuthors As Variant
  3497. Dim Originator As Variant
  3498. Dim Versioning As Variant
  3499. '***** DATA VARIABLE - FIELDS DEFINED IN SCRIPT, NOT DEFINED ON FORM
  3500. Dim Status As Variant
  3501. Dim Locked As Variant
  3502. Dim InProcess As Variant
  3503. '***** SCRIPT PROCESSING VARIABLES *****
  3504. Dim ReviewerList() As Variant
  3505. Dim OldList() As Variant
  3506. Dim InputList As Variant
  3507. Dim NewList() As Variant
  3508. Dim ListMax As Integer
  3509. Dim tmpList As Variant
  3510. Dim CompareValue As Variant
  3511. Dim Elements As Integer
  3512. Dim DocWasSaved As Integer
  3513. Dim ParentIsLocked As Integer
  3514. Dim DocIsLocked As Integer
  3515. Dim LockedBy As Variant
  3516. Dim InitiatingReview As Integer
  3517. Dim CompareValueFound As Integer
  3518. Dim FinalSave As Variant
  3519. Dim oleobject As Variant
  3520. Dim embed As NotesEmbeddedObject
  3521. '***** TEMP PROCESSING FIELDS - ADDED TO DOC ON OPEN, DELETED ON CLOSE*****
  3522. Dim CurrentUser As String
  3523. Dim Action As Variant
  3524. Dim StatusList(1 To 4) As Variant
  3525. '++LotusScript Development Environment:2:2:Initialize:1:10
  3526. Sub Initialize
  3527.      
  3528. End Sub
  3529. '++LotusScript Development Environment:2:2:GetOrCreateOLEObject:1:8
  3530. Sub GetOrCreateOLEObject
  3531.      Dim sOleField As String
  3532.      
  3533.      If note.hasitem("$OLEObjProgID") Then
  3534.           sOleField = note.~$OLEObjField(0)
  3535.           If doc.IsNewDoc Then
  3536.                note.~$OLEVersion = "46"
  3537.                doc.RefreshHideFormulas
  3538.                doc.gotofield(sOleField)
  3539.                Call doc.CreateObject("OLEObject",note.~$OLEObjProgID(0),"")
  3540.           Else
  3541.                If (doc.InPreviewPane) Then Exit Sub
  3542.           ' If the user is not an author of the document we have to launch out of place
  3543.                If (db.CurrentAccessLevel > ACLLEVEL_AUTHOR) Or (note.tmpUseOLE(0) = "1") Then doc.EditMode = True
  3544.                Set rtitem = note.GetFirstItem(sOleField)
  3545.                Set embed = rtitem.EmbeddedObjects(0)
  3546.           ' see if this is an older document
  3547.                If note.~$OLEVersion(0) <> "46" Then
  3548.                     Set oleobject = embed.Activate(True)
  3549.                Else
  3550.                     Set oleobject = doc.GetObject(embed.name)              
  3551.                End If
  3552.           End If
  3553.      End If
  3554.      
  3555. End Sub
  3556. '++LotusScript Development Environment:2:2:DocQueryOpen:1:8
  3557. Sub DocQueryOpen(source As NotesUIDocument, mode As Integer, isnewdoc As Variant, continue As Variant)
  3558.      
  3559. 'If it is a new doc, there is no note yet, so we cannot initialize it from here
  3560.      If IsNewDoc Then Exit Sub
  3561.      
  3562.      Call InitializeDocument(source)    
  3563.      
  3564.      If Mode = 1 Then
  3565.           If DocIsLocked Then
  3566.                Messagebox "This document is being edited by " & LockedBy(0) & ".  Please try later.",_
  3567.                0 + 48, "Document Library"
  3568.                Continue = False
  3569.           Else
  3570. 'If this is a Document Reservations review, then lock this doc     
  3571.                If note.ReviewStyle(0) = "Parallel.NoVersions" Then
  3572.                     note.Locked = CurrentUser
  3573.                     note.DocumentAuthors = CurrentUser
  3574.                     If note.DocumentReaders(0) = "" Then note.RemoveItem("DocumentReaders")
  3575.                     On Error Goto SaveError
  3576.                     note.save True, True
  3577.                End If
  3578.           End If 
  3579.      End If
  3580.      
  3581.      Exit Sub
  3582.      
  3583. SaveError:
  3584.      
  3585.      Messagebox "This document is currently in use.  Please try later.",_
  3586.      0 + 48, "Document Library"
  3587.      Continue = False
  3588.      Exit Sub
  3589.      
  3590. End Sub
  3591. '++LotusScript Development Environment:2:2:DocPostOpen:1:8
  3592. Sub DocPostOpen(source As NotesUIDocument)
  3593.      
  3594. 'This allows us to reference the UI Document in areas where source represents a different object     
  3595.      Set doc = source
  3596.      
  3597. 'If it is a new doc, we initialize it here.  Existing docs are initialized in Queryopen because it is faster (one less refresh is required)    
  3598.      If source.IsNewDoc Then
  3599.           Call InitializeDocument(source)
  3600.           source.Reload
  3601.           source.RefreshHideFormulas
  3602.      Else
  3603. 'If the doc was opened in edit mode, it may be a review initiation (this routine is also executed on mode change)         
  3604.           If source.EditMode = True Then
  3605.                Status = note.Status
  3606.                If Status(0) = StatusList(3) Then Call InitiateReview(source)
  3607.           End If         
  3608.      End If
  3609.      
  3610.      GetOrCreateOleObject
  3611. End Sub
  3612. '++LotusScript Development Environment:2:2:DocQueryModeChange:1:8
  3613. Sub DocQueryModeChange(source As NotesUIDocument, continue As Variant)
  3614.      
  3615. 'If the doc is locked, do not allow them to put in in edit mode     
  3616.      If source.EditMode = False And note.ReviewStyle(0) = "Parallel.NoVersions" Then
  3617.           If Not DocIsLocked Then
  3618.                SavedUNID = note.UniversalId
  3619.                Delete note
  3620.                Set tempnote = db.GetDocumentByUNID(SavedUNID)
  3621.                If tempnote.HasItem("Locked") Then 
  3622.                     DocIsLocked = True
  3623.                     LockedBy = tempnote.Locked
  3624.                End If                   
  3625.                Delete tempnote
  3626.                Set note = source.Document
  3627.           End If
  3628.           If DocIsLocked Then
  3629.                Messagebox "This document is being edited by " & LockedBy(0) & ".  Please try later.",_
  3630.                0 + 48, "Document Library"
  3631.                Continue = False
  3632.           Else
  3633.                note.Locked = CurrentUser
  3634.                note.DocumentAuthors = CurrentUser
  3635.                If note.DocumentReaders(0) = "" Then note.RemoveItem("DocumentReaders")
  3636.                On Error Goto SaveError
  3637.                note.save True, True
  3638.           End If
  3639.      End If
  3640.      
  3641.      Exit Sub
  3642.      
  3643. SaveError:
  3644.      
  3645.      Messagebox "This document is currently in use.  Please try later.",_
  3646.      0 + 48, "Document Library"
  3647.      Continue = False
  3648.      Exit Sub
  3649.      
  3650. End Sub
  3651. '++LotusScript Development Environment:2:2:DocPostModeChange:1:8
  3652. Sub DocPostModeChange(source As NotesUIDocument)
  3653.      
  3654. 'Putting the doc in edit mode might be a review initiation (this routine is also executed if the doc is opend in edit mode)
  3655.      If Source.EditMode = True Then
  3656.           Status = note.Status
  3657.           If Status(0) = StatusList(3) Then Call InitiateReview(source)
  3658.      End If
  3659.      
  3660. End Sub
  3661. '++LotusScript Development Environment:2:2:DocPostRecalc:1:8
  3662. Sub DocPostRecalc(source As NotesUIDocument)
  3663.      
  3664. End Sub
  3665. '++LotusScript Development Environment:2:2:DocQuerySave:1:8
  3666. Sub DocQuerySave(Source As NotesUIDocument, Continue As Variant)
  3667.      
  3668.      If FinalSave Then Exit Sub
  3669.      
  3670.      On Error Resume Next
  3671.      
  3672. 'All routing logic is driven from here.  The Action buttons set the tmpAction value which drives processing.
  3673.      Status = note.Status
  3674.      
  3675. 'If Subject is blank, be sure they enter it here     
  3676.      Subject = note.Subject
  3677.      If Subject(0) = "" Then
  3678.           Subject(0) = Inputbox("Please enter a Title for this document.", "Document Library", "(Untitled)")
  3679.           If Subject(0) = "" Then
  3680.                Continue = False
  3681.                Exit Sub
  3682.           End If
  3683.      End If
  3684.      note.Subject = Subject(0)
  3685.      
  3686. 'Be sure that versions do not get $Ref stripped off
  3687.      If note.IsResponse Then Call note.ReplaceItemValue("$RefOptions", "1")
  3688.      
  3689. 'InitiatingReview means that they are saving in order to generate a new version
  3690. 'Status 1 means there is no review cycle.  In both cases we don't need to execute the rest of the logic here.     
  3691.      If InitiatingReview Or Status(0) = StatusList(1) Then
  3692.           source.Reload
  3693.           Exit Sub
  3694.      Else
  3695.           Print "Saving Document"
  3696.      End If      
  3697.      
  3698. 'Find out which kind of a review we are doing     
  3699.      GetReviewSequence
  3700.      
  3701. 'Get the Action type and the Reviewer list     
  3702.      Action = note.tmpAction
  3703.      Reviewers = note.Reviewers
  3704.      
  3705. 'Decide how to process based on which Action button was pressed
  3706.      Select Case Action(0)
  3707. 'On Submit - build the current and future reviewer lists and send notification to the appropriate person(s)          
  3708.      Case "Submit"
  3709.           note.Status = StatusList(3)
  3710.           SetReviewerLists        
  3711.           SendNotification
  3712. 'On Completion of a review - if it is a response, lock the parent because we are going to update it
  3713.      Case "Complete"
  3714.           If note.IsResponse Then
  3715.                parentid = note.ParentDocumentUNID
  3716.                Set parent = db.GetDocumentByUNID(parentid)
  3717.                parent.Locked = CurrentUser
  3718.                ParentIsLocked = True
  3719.                parent.save True, True
  3720.           End If
  3721. 'Rebuild the previous, current, and future reviewer lists and send notificationto the appropriate person(s)
  3722.           SetReviewerLists
  3723.           SendNotification
  3724. 'Get the name of the person(s) currently reviewing this document (actively reviewing it means they have started
  3725. 'reviewing it, rather than just being on the CurrentReviewer list)          
  3726.           InProcess = note.InProcess
  3727.           CompareValue = CurrentUser
  3728. 'Pull CurrentUser out of the InProcess list          
  3729.           Call RebuildList(InProcess)
  3730.           Call note.ReplaceItemValue("InProcess", tmpList)
  3731.           CurrentReviewers = note.CurrentReviewers
  3732. 'If CurrentReviewers = None (already set in the SetReviewerLists routine) then all reviews are complete so reset status
  3733.           If CurrentReviewers(0) = "None" Then note.Status = StatusList(4)
  3734. 'If the parent is locked then unlock it          
  3735.           If ParentIsLocked Then
  3736.                CurrentReviewers = parent.CurrentReviewers
  3737.                If CurrentReviewers(0) = "None" Then
  3738.                     parent.Status = StatusList(4)
  3739.                     parent.RemoveItem("DueDate")
  3740.                End If
  3741.                parent.RemoveItem("Locked")
  3742.                ParentIsLocked = False
  3743.                parent.Save True, True
  3744.           End If
  3745.      End Select
  3746.      
  3747. 'Reset $VersionOpt to 0 to prevent further versioning
  3748.      If note.HasItem("$VersionOpt") Then Call note.ReplaceItemValue("$VersionOpt", "0")
  3749.      
  3750. 'Set the DocWasSaved flag so the Queryclose event knows about it     
  3751.      DocWasSaved = True
  3752.      
  3753.      source.Reload
  3754.      
  3755.      Print
  3756.      
  3757. End Sub
  3758. '++LotusScript Development Environment:2:2:DocQueryClose:1:8
  3759. Sub DocQueryClose(Source As NotesUIDocument, Continue As Variant)
  3760.      
  3761.      On Error Goto ErrorRoutine
  3762.      
  3763. 'If the doc wasn't saved, we do not need to execute the rest of the logic in this event     
  3764.      If DocWasSaved Or note.Locked(0) <> "" Then    
  3765.           Print "Closing Document"
  3766.      Else
  3767.           Exit Sub
  3768.      End If
  3769.      
  3770.      Action = note.tmpAction
  3771.      
  3772. 'A backend save (note.save) saves every field that it knows about, which is every field on the form.  It does not
  3773. 'distinguish between ComputedForDisplay and data fields (the backend classes have no such UI constraints).
  3774. 'Consequently, we delete all ComputedForDisplay and other temporary fields     
  3775.      itemlist = note.Items
  3776.      Forall n In itemlist
  3777.           If Lcase(Left(n.Name, 3)) = "tmp" Then n.Remove
  3778.      End Forall
  3779.      Scope = note.Scope
  3780.      CurrentReviewers = note.CurrentReviewers
  3781.      Status = note.Status
  3782.      
  3783. 'We reset the author names here because the UI save has already occurred (so we can).
  3784. 'The new authornames will take effect the next time the doc is accessed.     
  3785.      If Scope(0) = "Public" Then note.RemoveItem("DocumentReaders")
  3786.      If Status(0) = StatusList(1) Or Status(0) = StatusList(2) Then
  3787.           note.DocumentAuthors = Originator(0)
  3788.      Else
  3789.           ResetAuthorNames
  3790.      End If
  3791.      
  3792.      If note.HasItem("SaveOptions") Then note.RemoveItem("SaveOptions")
  3793.      If note.Locked(0) = CurrentUser Then 
  3794.           note.RemoveItem("Locked")
  3795.      Else
  3796.           If DocIsLocked Then Exit Sub         
  3797.      End If
  3798.      
  3799.      FinalSave = True
  3800.      source.Reload
  3801.      source.Refresh
  3802.      source.Save
  3803.      
  3804.      w.ViewRefresh
  3805.      Print
  3806.      
  3807. ErrorRoutine:
  3808.      Exit Sub
  3809.      
  3810. End Sub
  3811. '++LotusScript Development Environment:2:2:InitializeDocument:1:8
  3812. Sub InitializeDocument(source)
  3813.      
  3814. 'This routine initializes object variables, global variables and some field values     
  3815.      
  3816. 'Turn off Autoreload to speed up response time (this means we need to do manual reloads and refreshes)
  3817.      source.AutoReload = False
  3818.      
  3819.      Set w = New NotesUIWorkspace
  3820.      Set s = New NotesSession
  3821.      Set db = s.CurrentDatabase
  3822.      Set note = source.Document
  3823.      
  3824.      CurrentUser = s.CommonUserName
  3825.      note.tmpCurrentUser = CurrentUser
  3826.      Originator = note.From
  3827.      
  3828.      InitializeStatusList
  3829.      If source.IsNewDoc Then
  3830.           note.Status = StatusList(1)
  3831.           note.Scope = "Public"
  3832.      Else
  3833.           If note.Locked(0) <> "" Then
  3834.                DocIsLocked = True
  3835.                LockedBy = note.Locked
  3836.           End If
  3837.      End If
  3838.      
  3839. 'Initialize V3 documents
  3840.      If Not(note.HasItem("Status")) Then
  3841.           note.Status = StatusList(1)
  3842.           note.Scope = "Public"
  3843.           note.DocumentAuthors = s.CommonUserName
  3844.           note.From = Evaluate("@Name([CN]; From)", note)
  3845.      End If
  3846.      
  3847. 'Clear the status bar     
  3848.      Print
  3849.      
  3850. End Sub
  3851. '++LotusScript Development Environment:2:2:Postopen:1:8
  3852. Sub Postopen(Source As Notesuidocument)
  3853.      
  3854. 'This allows us to reference the UI Document in areas where source represents a different object     
  3855.      Set doc = source
  3856.      
  3857. 'If it is a new doc, we initialize it here.  Existing docs are initialized in Queryopen because it is faster (one less refresh is required)    
  3858.      If source.IsNewDoc Then
  3859.           Call InitializeDocument(source)
  3860.           source.Reload
  3861.           source.RefreshHideFormulas
  3862.      Else
  3863. 'If the doc was opened in edit mode, it may be a review initiation (this routine is also executed on mode change)         
  3864.           If source.EditMode = True Then
  3865.                Status = note.Status
  3866.                If Status(0) = StatusList(3) Then Call InitiateReview(source)
  3867.           End If         
  3868.      End If
  3869.      
  3870. End Sub
  3871. '++LotusScript Development Environment:2:2:RebuildList:1:8
  3872. Sub RebuildList(InputList As Variant)
  3873.      
  3874. 'This routine removes a value from a list (passed by reference)
  3875.      
  3876.      ListMax = Ubound(InputList)
  3877.      
  3878. 'Save original capitalization in OldList then lowercase both InputList and CompareValue     
  3879.      Redim OldList (ListMax)
  3880.      For i = 0 To ListMax
  3881.           OldList(i) = InputList(i)
  3882.           InputList(i) = Lcase(InputList(i))
  3883.      Next
  3884.      CompareValue = Lcase(CompareValue)
  3885.      
  3886.      Redim NewList (ListMax)
  3887.      x = 0 
  3888.      For y = 0 To ListMax
  3889.           If InputList(y) <> CompareValue Then
  3890.                NewList(x) = OldList(y)
  3891.                x = x + 1
  3892.           End If
  3893.      Next
  3894.      
  3895.      If x > 0 Then
  3896.           Redim Preserve NewList(x-1)
  3897.           tmpList = NewList
  3898.      Else
  3899.           tmpList = "None"
  3900.      End If
  3901.      
  3902.      If x = ListMax Then
  3903.           CompareValueFound = True
  3904.      Else
  3905.           CompareValueFound = False
  3906.      End If
  3907.      
  3908. End Sub
  3909. '++LotusScript Development Environment:2:2:SetReviewerLists:1:8
  3910. Sub SetReviewerLists
  3911.      
  3912.      Print "Updating Reviewer Lists"
  3913.      
  3914.    For a Parallel submit, set CurrentReviewers to the Reviewers field (there are no
  3915.       FutureReviewers - all reviewers are current) and set FutureReviewers to "None".
  3916.    For a Parallel review, remove CurrentUser from CurrentReviewers and add it to
  3917.       PreviousReviewers.
  3918.    For a Serial submit, set CurrentReviewers to the first Reviewer and set FutureReviewers
  3919.       to the Reviewers field minus the first Reviewer
  3920.    For a Serial review remove CurrentUser from FutureReviewers and add it to
  3921.       PreviousReviewers.
  3922. %ENDREM
  3923.      
  3924.      ListMax = 0
  3925.      Set dt = New NotesDateTime("")
  3926.      dt.SetNow
  3927.      If Action(0) = "Complete" Then ReviewerLogEntry = CurrentUser & " on " & Format(dt.LSLocalTime, "Short Date")
  3928.      
  3929.      Select Case ReviewSeq
  3930.      Case "Parallel"
  3931. 'On submit Set future reviewers to None since all reviewers are current          
  3932.           If Action(0) = "Submit" Then
  3933.                Reviewers = note.Reviewers            
  3934.                tmpList = Reviewers
  3935.                note.FutureReviewers = "None"
  3936.           Else
  3937. '(this is for action = Complete)               
  3938. 'For Response Reviews, we maintain the status in the parent               
  3939.                If note.IsResponse Then
  3940.                     CurrentReviewers = parent.CurrentReviewers
  3941.                     Set item = parent.GetFirstItem("ReviewerLog")
  3942.                Else
  3943.                     CurrentReviewers = note.CurrentReviewers
  3944.                     Set item = note.GetFirstItem("ReviewerLog")
  3945.                End If
  3946.                item.AppendToTextList(ReviewerLogEntry)              
  3947.                CompareValue = CurrentUser
  3948. 'Remove the CurrentUser from the CurrentReviewers list               
  3949.                Call RebuildList(CurrentReviewers)
  3950.           End If
  3951.           FieldName = "CurrentReviewers"
  3952.      Case "Serial"
  3953. 'On submit, put all reviewers in the future reviewers list          
  3954.           If Action(0) = "Submit" Then
  3955.                Reviewers = note.Reviewers
  3956.                tmpList = Reviewers
  3957.                Call note.ReplaceItemValue("FutureReviewers", tmpList)
  3958.           Else
  3959.                Set item = note.GetFirstItem("ReviewerLog")
  3960.                item.AppendToTextList(ReviewerLogEntry)
  3961.           End If
  3962.           FutureReviewers = note.FutureReviewers
  3963. 'Put the first person in the future reviewers list in current reviewer
  3964. 'On submit this makes the first one current, on Complet it makes the next one current          
  3965.           note.CurrentReviewers = FutureReviewers(0)
  3966.           CompareValue = FutureReviewers(0)
  3967.           FieldName = "FutureReviewers"
  3968. 'Remove the first element from the FutureReviewers list
  3969.           Call RebuildList(FutureReviewers)
  3970.      End Select
  3971.      
  3972. 'Calculate when the review is due, based upon ReviewTime     
  3973.      ReviewTime = note.ReviewTime
  3974.      temp = ReviewTime(0)
  3975.      Set dt = New NotesDateTime("")
  3976.      dt.SetNow
  3977.      If Isnumeric(ReviewTime(0)) Then dt.AdjustDay(temp)
  3978.      
  3979. 'Update DueDate - If there is a Review time then reset, otherwise delete
  3980. 'Update PreviousReviewers to None if this is a submit, otherwise add CurrentUser to existing list
  3981.      If note.IsResponse And ReviewSeq = "Parallel" Then
  3982.           If Isnumeric(ReviewTime(0)) Then
  3983.                parent.DueDateTime = dt.LSLocalTime
  3984.           Else
  3985.                parent.RemoveItem("DueDateTime")
  3986.           End If
  3987.           Call parent.ReplaceItemValue(FieldName, tmpList)
  3988.           PreviousReviewers = parent.PreviousReviewers
  3989.           If PreviousReviewers(0) = "None" Then
  3990.                parent.PreviousReviewers = CurrentUser
  3991.           Else
  3992.                Set item = parent.GetFirstItem("PreviousReviewers")
  3993.                item.AppendToTextList (CurrentUser)
  3994.           End If
  3995. 'In a response review, we remove these because they are stored in the main doc          
  3996.           note.RemoveItem("PreviousReviewers")
  3997.           note.RemoveItem("CurrentReviewers")
  3998.           note.RemoveItem("FutureReviewers")
  3999.           If Action(0) = "Complete" Then
  4000.                note.RemoveItem("DueDateTime")
  4001.                note.Status = StatusList(4)
  4002.           End If
  4003.      Else
  4004.           If Isnumeric(ReviewTime(0)) Then 
  4005.                note.DueDateTime = dt.LSLocalTime
  4006.           Else
  4007.                note.RemoveItem("DueDateTime")
  4008.           End If
  4009.           Call note.ReplaceItemValue(FieldName, tmpList)
  4010.           If Action(0) = "Submit" Then
  4011.                note.PreviousReviewers = "None"
  4012.           Else
  4013.                PreviousReviewers = note.PreviousReviewers
  4014.                If PreviousReviewers(0) = "None" Then
  4015.                     note.PreviousReviewers = CurrentUser
  4016.                Else              
  4017.                     Set item = note.GetFirstItem("PreviousReviewers")
  4018.                     item.AppendToTextList (CurrentUser)
  4019.                End If
  4020.           End If
  4021.      End If
  4022.      
  4023. End Sub 
  4024. '++LotusScript Development Environment:2:2:SendNotification:1:8
  4025. Sub SendNotification
  4026.      
  4027. 'This routine sets the content of the notification email, based upon values set in SetReviewerLists.     
  4028.      
  4029.      If note.IsResponse Then
  4030.           CurrentReviewers = parent.CurrentReviewers
  4031.      Else
  4032.           CurrentReviewers = note.CurrentReviewers
  4033.      End If
  4034.      DbTitle = db.Title
  4035.      DueDateTime = note.DueDateTime
  4036.      Subject = note.Subject
  4037.      Recipient = Empty
  4038.      NotifyAfter = note.NotifyAfter
  4039.      
  4040. 'If it is a parallel review with only final notification to the originator, 
  4041. 'there is not need to send mail on a normal completion     
  4042.      If (ReviewSeq = "Parallel") And (CurrentReviewers(0) <> "None") _
  4043.      And (NotifyAfter(0) = "Final") And (Action(0) <> "Submit") Then
  4044.           Exit Sub
  4045.      Else
  4046.           Print "Sending Notification"
  4047.      End If
  4048.      
  4049.      Set maildoc = New NotesDocument(db)
  4050.      Set rtitem = New NotesRichTextItem(maildoc, "Body")
  4051.      
  4052.      Select Case Action(0)
  4053.      Case "Submit"
  4054.           tmpList = CurrentReviewers
  4055.           tmpSubject = "Document Requires Review:  " & Subject(0)
  4056.           If note.HasItem("DueDateTime") Then
  4057.                tmpFlowStatus = "Please take the time to review this document before the due date shown below."              
  4058.           Else
  4059.                tmpFlowStatus = "Please take the time to review this document."
  4060.           End If
  4061.           tmpMessagebox = "Request for review has been sent to "
  4062.           If ReviewSeq = "Parallel" Then
  4063.                tmpRecipient = "All Reviewers"
  4064.           Else
  4065.                tmpRecipient = CurrentReviewers(0)         
  4066.           End If
  4067.      Case "Complete"
  4068.           If CurrentReviewers(0) = "None" Then
  4069.                tmpList = Originator(0)
  4070.                tmpSubject = "Review is complete for:  " & Subject(0)
  4071.                tmpFlowStatus = "All reviewers have completed their work on this document."
  4072.                tmpMessagebox = "Notification that you have completed your review has been sent to the originator: "               
  4073.           Else
  4074.                Select Case ReviewSeq
  4075.                Case "Parallel"     
  4076.                     tmpList = Originator(0)              
  4077.                     tmpFlowStatus = CurrentUser & " is finished reviewing this document."              
  4078.                     tmpSubject = CurrentUser & " has completed review of:  " & Subject(0)
  4079.                     tmpMessagebox = "Notification that you have completed your review has been sent to the originator, "
  4080.                Case "Serial"
  4081.                     tmpList = CurrentReviewers(0)
  4082.                     tmpSubject = "Document Requires Review:  " & Subject(0)
  4083.                     If note.HasItem("DueDateTime") Then
  4084.                          tmpFlowStatus = Originator(0) & " requests that you review this document before the due date shown below."            
  4085.                     Else
  4086.                          tmpFlowStatus = Originator(0) & " requests that you review this document."              
  4087.                     End If
  4088.                     tmpMessagebox = "Notification that you have completed your review has been sent to "               
  4089.                     If NotifyAfter(0) = "Each" Then 
  4090.                          maildoc.CopyTo = Originator(0)
  4091.                          tmpRecipient = tmpList & " and " & Originator(0)
  4092.                     End If
  4093.                End Select
  4094.           End If
  4095.           If tmpRecipient = "" Then tmpRecipient = tmpList
  4096.      End Select
  4097.      
  4098.      Call maildoc.AppendItemValue("SendTo", tmpList)
  4099.      
  4100.      maildoc.Subject = tmpSubject
  4101.      maildoc.InheritedSubject = Subject(0)
  4102.      maildoc.InheritedDbTitle = DbTitle
  4103.      maildoc.FlowStatus = tmpFlowStatus
  4104.      If note.HasItem("DueDateTime") Then maildoc.DueDateTime = Format(DueDateTime(0), "Short Date")
  4105.      
  4106.      If note.IsResponse Then
  4107.           Call rtitem.AppendDocLink(parent, "DocLink to " & Subject(0))
  4108.      Else
  4109.           Call rtitem.AppendDocLink(note, "DocLink to " & Subject(0))
  4110.      End If
  4111.      
  4112.      maildoc.Form = "Bookmark"
  4113.      
  4114.      On Error Goto SendError
  4115.      Call maildoc.Send (False)
  4116.      
  4117.      Messagebox tmpMessagebox & tmpRecipient & ".", 0 + 64, "Document Library"
  4118.      
  4119.      Exit Sub
  4120.      
  4121. SendError:
  4122.      Messagebox "FYI:  " & tmpRecipient & " could not be notified via email at this time.", 0 + 64, "Document Library"
  4123.      Exit Sub
  4124.      
  4125. End Sub
  4126. '++LotusScript Development Environment:2:2:InitiateReview:1:8
  4127. Sub InitiateReview(source)
  4128.      
  4129. 'This routine does the versioning that occurs when a review in initiated (as opposed to on every save)     
  4130.      InProcess = note.InProcess
  4131.      Reviewers = note.Reviewers
  4132.      PreviousReviewers = note.PreviousReviewers
  4133.      
  4134. 'Check to see if CurrentUser is in the InProcess list.  If they are (or if this is the originator) then do not do versioning     
  4135.      Redim ReviewerList(0) 
  4136.      Forall n In InProcess
  4137.           If CurrentUser = n Then ReviewerList(0) = CurrentUser
  4138.      End Forall
  4139.      
  4140. 'Find out what kind of review we are processing     
  4141.      GetReviewSequence
  4142.      
  4143.      If ReviewerList(0) = CurrentUser Or CurrentUser = Originator(0) Then Exit Sub
  4144.      Print "Initiating Review"
  4145.      
  4146. 'Set the $VersionOpt appropriately
  4147.      If (Versioning = "Versions") Then
  4148.           If ReviewSeq = "Parallel" Then
  4149. 'This doc becomes a response (we are subsequently editting the response doc)
  4150.                VersionOpt = "1"
  4151.           Else
  4152. 'Previous versions become response (we are still editing the main doc)               
  4153.                VersionOpt = "3"
  4154.           End If
  4155.      Else
  4156. 'The original doc is saved as a response (for safe keeping)          
  4157.           If PreviousReviewers(0) = "None" And Not(note.HasItem("$VersionOpt")) Then VersionOpt = "3"
  4158.      End If
  4159.      
  4160. 'Reset the field
  4161.      If (Versioning = "Versions") Or (PreviousReviewers(0) = "None") Then Call note.ReplaceItemValue("$VersionOpt", VersionOpt)
  4162.      
  4163. 'CurrentUser is now on the InProcess list because they are actively reviewing the doc     
  4164.      Set item = note.GetFirstItem("InProcess")
  4165.      If item Is Nothing Then
  4166.           Call note.AppendItemValue("InProcess", CurrentUser)
  4167.      Else
  4168.           item.AppendToTextList(CurrentUser)
  4169.      End If
  4170.      
  4171. 'InitiatingReview flag tells the Querysave event how to process, reload from the backend, 
  4172. 'and save from the front end to create the appropriate version     
  4173.      InitiatingReview = True
  4174.      source.Reload
  4175.      If VersionOpt = 1 Or VersionOpt = 3 Then
  4176.           source.Refresh
  4177.           source.SaveNewVersion
  4178.      End If
  4179.      source.RefreshHideFormulas
  4180.      InitiatingReview = False
  4181.      
  4182.      Print
  4183.      
  4184. End Sub
  4185. '++LotusScript Development Environment:2:2:GetReviewSequence:1:8
  4186. Sub GetReviewSequence
  4187.      
  4188. 'ReviewSequence is stored in a manner that makes sense to users.  Here it is dealt with as serial or parallel,
  4189. 'with or without versioning.
  4190.      
  4191.      ReviewStyle = note.ReviewStyle
  4192.      
  4193.      position = Instr(ReviewStyle(0), ".")
  4194.      ReviewSeq = Left(ReviewStyle(0), position - 1)
  4195.      Versioning = Mid(ReviewStyle(0), position + 1)    
  4196.      
  4197. End Sub
  4198. '++LotusScript Development Environment:2:2:ResetAuthorNames:1:8
  4199. Sub ResetAuthorNames
  4200.      
  4201.      Select Case ReviewSeq
  4202.      Case "Serial"
  4203. 'Reset author names to CurrentReviewers + Originator (unless CurrentReviewers = "None")
  4204.           If CurrentReviewers(0) = "None" Then
  4205.                note.DocumentAuthors = Originator(0)
  4206.           Else
  4207.                CompareValue = Empty
  4208.                Call RebuildList(CurrentReviewers)
  4209.                Redim Preserve NewList(ListMax+1)
  4210.                NewList(ListMax+1) = Originator(0)
  4211.                tmpList = NewList
  4212.                note.DocumentAuthors = tmpList
  4213.           End If
  4214. 'If there are versions, remove it from them as well          
  4215.           If note.HasItem("$VersionOpt") Then
  4216.                Set children = note.Responses
  4217.                For c = 1 To children.Count
  4218.                     Set child = children.GetNthDocument(c)
  4219.                     child.DocumentAuthors = Originator(0)
  4220.                     If child.DocumentReaders(0) = "" Then child.RemoveItem("DocumentReaders")
  4221. 'It does not matter if it can not be saved because CurrentUser may not be in the AuthorNames field in all responses
  4222.                     On Error Resume Next
  4223.                     child.Save True, True
  4224.                     Err = 0
  4225.                Next
  4226.           End If
  4227.      Case "Parallel"
  4228.           If note.IsResponse Then
  4229. 'If all done we are updating the parent and the originator is the only editor
  4230. 'otherwise CurrentUser and originator are the editors of this doc
  4231.                If Action(0) = "Complete" Then
  4232.                     note.DocumentAuthors = Originator(0)
  4233.                     parentid = note.ParentDocumentUNID
  4234.                     Set parent = db.GetDocumentByUNID(parentid)
  4235.                     DocumentAuthors = parent.DocumentAuthors
  4236.                     CompareValue = CurrentUser
  4237.                     Call RebuildList(DocumentAuthors)
  4238.                     parent.DocumentAuthors = tmpList
  4239.                     If parent.DocumentReaders(0) = "" Then parent.RemoveItem("DocumentReaders")
  4240.                     parent.Save True, True
  4241.                Else
  4242.                     Redim NewList(1)
  4243.                     NewList(0) = CurrentUser
  4244.                     NewList(1) = Originator(0)
  4245.                     tmpList = NewList
  4246.                     note.DocumentAuthors = tmpList
  4247.                End If
  4248.           Else
  4249. 'If we are not versioning - then all current reviewers and the originator are editors (unless CurrentReviewer = "None")
  4250.                If CurrentReviewers(0) = "None" Then
  4251.                     note.DocumentAuthors = Originator(0)
  4252.                Else
  4253.                     CompareValue = Empty
  4254.                     Call RebuildList(CurrentReviewers)
  4255.                     Redim Preserve NewList(ListMax+1)
  4256.                     NewList(ListMax+1) = Originator(0)
  4257.                     tmpList = NewList
  4258.                     note.DocumentAuthors = tmpList
  4259.                End If
  4260. 'If there are versions, remove it from them as well          
  4261.                If note.HasItem("$VersionOpt") Then
  4262.                     Set children = note.Responses
  4263.                     For c = 1 To children.Count
  4264.                          Set child = children.GetNthDocument(c)
  4265.                          child.DocumentAuthors = Originator(0)
  4266.                          If child.DocumentReaders(0) = "" Then child.RemoveItem("DocumentReaders")
  4267.                          child.RemoveItem("Locked")
  4268. 'It does not matter if it can not be saved because CurrentUser may not be in the AuthorNames field in all responses
  4269.                          On Error Resume Next
  4270.                          child.Save True, True
  4271.                          Err = 0
  4272.                     Next
  4273.                End If
  4274.           End If
  4275.      End Select
  4276.      
  4277. End Sub
  4278. '++LotusScript Development Environment:2:2:InitializeStatusList:1:8
  4279. Sub InitializeStatusList
  4280.      
  4281. 'Statuses are referred to positionally.  If you want the works to display differently in the view (like if you want the first
  4282. 'status to be None instead of New) you would change them here.     
  4283.      StatusList(1) = "New"
  4284.      StatusList(2) = "Ready for Review"
  4285.      StatusList(3) = "In Review"
  4286.      StatusList(4) = "Review Complete"
  4287.      
  4288.      note.StatusList = StatusList
  4289.      
  4290. End Sub
  4291. }P    #8
  4292. ,d J0 
  4293. ,d J0 
  4294. O=Lotus Notes
  4295. O=Lotus Notes
  4296. PURSAFO
  4297. |.:#U
  4298. O=Lotus Notes
  4299. CN=Lotus Notes Template Development/O=Lotus Notes
  4300. PURSAFO
  4301. Fde!f^^
  4302. $ScriptLib
  4303. $ScriptLib_O
  4304. $TITLE
  4305. $Flags
  4306. $PublicAccess
  4307. 06/12/97 12:37:38 PM Ryan Jansen/Iris added [-Default-]
  4308. 06/12/97 12:37:38 PM Ryan Jansen/Iris deleted [-Default]
  4309. 03/25/97 01:36:16 PM Ryan Jansen/Iris updated [OtherDomainServers]
  4310. 03/25/97 01:36:12 PM Ryan Jansen/Iris updated [LocalDomainServers]
  4311. 03/25/97 01:36:00 PM Ryan Jansen/Iris updated [OtherDomainServers]
  4312. 03/25/97 01:35:57 PM Ryan Jansen/Iris added [OtherDomainServers]
  4313. 03/25/97 01:35:53 PM Ryan Jansen/Iris updated [LocalDomainServers]
  4314. 03/25/97 01:35:47 PM Ryan Jansen/Iris added [LocalDomainServers]
  4315. 03/25/97 01:35:40 PM Ryan Jansen/Iris updated [-Default]
  4316. 03/25/97 01:35:20 PM Ryan Jansen/Iris updated [-Default]
  4317. 03/25/97 01:35:16 PM Ryan Jansen/Iris added [-Default]
  4318. 03/25/97 01:35:12 PM Ryan Jansen/Iris deleted Ryan Jansen/Iris
  4319. 03/25/97 01:35:11 PM Ryan Jansen/Iris deleted OtherDomainServers
  4320. 03/25/97 01:35:09 PM Ryan Jansen/Iris updated LocalDomainServers
  4321. 03/25/97 01:35:03 PM Ryan Jansen/Iris updated -Default-
  4322. 02/19/97 09:27:18 AM Ryan Jansen/Iris updated Ryan Jansen/Iris
  4323. 02/19/97 09:27:18 AM Ryan Jansen/Iris added Ryan Jansen/Iris
  4324. 02/19/97 09:27:18 AM Ryan Jansen/Iris updated -Default-
  4325. 02/19/97 09:27:18 AM Ryan Jansen/Iris added LocalDomainServers
  4326. 02/19/97 09:27:18 AM Ryan Jansen/Iris added OtherDomainServers
  4327. -Default-
  4328. LocalDomainServers
  4329. [LocalDomainServers]
  4330. [OtherDomainServers]
  4331. [-Default-]
  4332.